question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot get status from iam.AccessKey resource

See original GitHub issue

python 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
imaginarynikcommented, Mar 29, 2021

Same problem in 1.17.39 as well!

1reaction
aidanmelencommented, Mar 29, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found