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

Update to use AWS Metadata V2 API #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonasoneves
Copy link

This updates the unicreds package to use the AWS Instance Metadata Service (IMDS) version 2 when retrieving the region data.

The main change is in the getRegion function, which now includes an additional HTTP request to retrieve a token before accessing the instance metadata endpoint. This is in line with best practices for IMDSv2 and helps to enhance the security by requiring session-oriented requests.

@jonasoneves
Copy link
Author

@wolfeidau would it be possible to have this merged? Thank you!

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