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

Skip call to instance metadata host if region is specified #360

Merged
merged 1 commit into from
Apr 21, 2017

Conversation

ankane
Copy link
Contributor

@ankane ankane commented Apr 20, 2017

Hey, thanks for the awesome work on this gem 👍

This PR avoids an extra fetch if region is specified.

The main benefit isn't performance, but rather permissions. For containers, AWS recommends blocking the instance metadata host (with iptables) so containers running on Amazon ECS don't have access to the underlying EC2 instance credentials.

http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html

@geemus
Copy link
Member

geemus commented Apr 21, 2017

Thanks!

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