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

If no credentials are specified, try and retrieve some temporary credentials via STS and the IAM Instance Profile in EC2 #17

Closed
wants to merge 2 commits into from

Conversation

gozer
Copy link
Contributor

@gozer gozer commented Nov 15, 2016

If not available, continue attempting to retrieve credentials the same way as
before

Fixes #16

…entials

via STS and the IAM Instance Profile in EC2

If not available, continue attempting to retrieve credentials the same way as
before

Fixes okigan#16
@okigan
Copy link
Owner

okigan commented Nov 16, 2016

This maybe a bit too big of a dependency to add to awscurl, meaning if you got boto one should use "boto way" to make aws requests. awscurl aims to give simpler surface area for making signed aws requests.

For now I'd defer to aws cli suggestion of using temporary credentials (from sts or not) and just pass them to awscurl
http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html#using-temp-creds-sdk-cli

export AWS_ACCESS_KEY_ID=AKIAI44QH8DHBEXAMPLE
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
export AWS_SECURITY_TOKEN=AQoDYXdzEJr...<remainder of security token>

awscurl ...

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