okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request: Support for Container credentails

misirlou-tg opened this issue · comments

ECS containers have different environment variables for their credentials. This is described in the following:
Container credential provider

The link says that there is support for this in the AWS SDK for Python, I don't know how difficult this would be in implement in awscurl.

There is an easy way to see this in action, the CloudShell available in the AWS console has the environment variables described in the above link ($AWS_CONTAINER_AUTHORIZATION_TOKEN, $AWS_CONTAINER_CREDENTIALS_FULL_URI). Awscurl works in the CloudShell currently, I copy/paste my credential environment variables into it, but mine expire after 1hr, so using the container's credentials would help a lot.

Thanks for your work on this utility!

Try the latest release. Here is example when using Cloudshell.

Excellent, that fixed it! I updated to the 0.28 release and it is working in CloudShell with my credentials.