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

Fixed ambiguous error message raised when resolving region from IMDS #9073

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

nateprewitt
Copy link
Member

An issue raised in #8988 points out an unhandled error in the AWS CLI region fetcher. In the base IMDS credential fetcher, this is handled by adding a debug log and turning the request into a no-op. In the CLI's region fetcher, it's treated as terminal and surfaced to the end user with an unhelpful object reference.

This was later ported to botocore in a different location (botocore/utils.py). I'll address that in a separate PR upstream.

Copy link
Member

@ashovlin ashovlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 looks like same pattern we have here:

except BadIMDSRequestError as e:
logger.debug("Bad IMDS request: %s", e.request)

@nateprewitt nateprewitt merged commit 75f3c12 into v2 Nov 13, 2024
90 checks passed
@nateprewitt nateprewitt deleted the bad_imds_request branch November 13, 2024 23:25
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

Successfully merging this pull request may close these issues.

2 participants