Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ElastiCache IAM connection example in docs reference non-existent function #2676

Closed
nint8835 opened this issue Mar 29, 2023 · 2 comments
Closed

Comments

@nint8835
Copy link

Version: N/A

Platform: N/A

Description: The "Connecting to a redis instance with ElastiCache IAM credential provider." example in the connection examples in the documentation references a function, generate_iam_auth_token, on the ElastiCache boto3 client. However, as far as I can tell, this function does not exist.

  • It does not appear in the list of supported methods on the ElastiCache client in the boto3 docs
  • Performing a GitHub code search for this function only returns the example from the docs in this repo and a few of it's forks
  • Attempting to access the function on the latest version of boto3 (1.26.101) raises an AttributeError:
     >>> import boto3
     >>> ec_client = boto3.client("elasticache", region_name="ca-central-1", aws_access_key_id="test", aws_secret_access_key="test")
     >>> ec_client.generate_iam_auth_token
     Traceback (most recent call last):
       File "<stdin>", line 1, in <module>
       File "/Users/riley/.pyenv/versions/redis-testing/lib/python3.10/site-packages/botocore/client.py", line 876, in __getattr__
         raise AttributeError(
     AttributeError: 'ElastiCache' object has no attribute 'generate_iam_auth_token'
@wraziens
Copy link

wraziens commented May 2, 2023

Did anyone find a workaround for this?

@dvora-h
Copy link
Collaborator

dvora-h commented Jul 16, 2023

Fixed in #2702

@dvora-h dvora-h closed this as completed Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants