-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
describe_key bug when passing alias ARN as KeyId #4259
Comments
Thanks for reaching out. When I call describe_key, I get the expected response when specifying I think one issue with your code snippet is the line I should also note that version 1.26.109 is very old — the latest version is 1.35.14 per the CHANGELOG. We recommend updating to a more recent version if you can. |
Thanks @tim-finnigan for your reply. You are right about the line that I assume the first one is always the one I want. Here is a complete code snippet that you can run:
and here are the logs:
The
The bug appear when we pass alias ARN, even with the latest boto3 version:
|
@tim-finnigan It seams like the bug is from the |
Ok thanks for letting us know, I'll go ahead and close this. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
As stated in
describe_key
's documentation, you can pass the alias ARN asKeyId
when the key is in another account. However, there is a bug when we have this scenario.Expected Behavior
The call to
describe_key
should gives us the key attributes, when calling it with alias or alias ARNCurrent Behavior
Reproduction Steps
Possible Solution
The key_id becomes
None
inget_key_id_from_alias
function calling indescribe_key
Additional Information/Context
Versions:
python = "3.12.1"
boto3 = "^1.26.109"
SDK version used
^1.26.109
Environment details (OS name and version, etc.)
MacOS, python 3.12.1
The text was updated successfully, but these errors were encountered: