okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.
MIT License
737 stars 91 forks source link

support fallback to instance credentials #63

Closed okigan closed 5 years ago

okigan commented 5 years ago

Add support to fallback to instance credentials by using optionally installed botocore - this may change in future as the story for support of roles and MFA(s) still not clear (see https://github.com/okigan/awscurl/issues/44)

okigan commented 5 years ago

@tinyzimmer see this one

tinyzimmer commented 5 years ago

Yep this would work I think. Only thing to note is botocore will flip out if any of the envvars are set also since those take precedence over IAM instance profiles. But if someone was shooting for that functionality they probably wouldn't have them set to begin with.

ereli-cb commented 5 years ago

You probably want to add botocore to the requirements.txt file, as per https://github.com/okigan/awscurl/pull/54