-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only use 2 metadata service calls to get credentials
Because of the lazy loading dict returned when retrieving IAM role credentials, we were making twice as many calls: * .../meta-data/ * .../meta-data/iam/ * .../meta-data/iam/security-credentials/ * .../meta-data/iam/security-credentials/role-name Instead the ``data`` arg is used so that we can make only two calls, one to retrieve the role name, and one to retrieve the actual credentials: * .../meta-data/iam/security-credentials/ * .../meta-data/iam/security-credentials/role-name
- Loading branch information
Showing
2 changed files
with
22 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters