Cannot get status from iam.AccessKey resource
See original GitHub issuepython version: Python 3.7.4 boto3 version: 1.9.211
I am having an issue accessing the status attribute on the iam.AccessKey resource.
I can see that this attribute is suppose to be lazy-loaded upon the call, but that never happens. For example:
>>> iam = boto3.resource('iam')
>>> access_key = iam.AccessKey('user_name', 'id')
>>> print(access_key.id)
id
>>> print(access_key.status)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/aidan-melen/.pyenv/versions/py37/lib/python3.7/site-packages/boto3/resources/factory.py", line 343, in property_loader
self.__class__.__name__))
boto3.exceptions.ResourceLoadException: iam.AccessKey has no load method
Pretty sure this is a bug, but I could just be using it incorrectly.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Troubleshooting general IAM issues - AWS Documentation
Use the information here to help you diagnose and fix access-denied or other common issues when you work with AWS Identity and Access...
Read more >Top 5 Common AWS IAM Errors you Need to Fix | A Cloud Guru
1. AccessDeniedException – I Can't Assume a Role. IAM roles can be used to delegate access to your AWS resources across different AWS...
Read more >Resolve "AWS Access Key Id" errors when sending requests ...
Open the IAM console. Choose Users. Verify that the IAM user is listed. If the user isn't listed, then you must create a...
Read more >aws.iam.AccessKey - Pulumi
Get an existing AccessKey resource's state with the given name, ID, and optional extra properties used to qualify the lookup. TypeScript; Python; Go;...
Read more >3 Ways to Reduce the Risk from Misused AWS IAM User ...
The Animal Jam breach is another example of how loose access key credentials can get. Even without a breach, the chance of credentials...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same problem in 1.17.39 as well!
closing in favor of workaround: https://github.com/boto/boto3/issues/2133#issuecomment-535186546