-
Notifications
You must be signed in to change notification settings - Fork 258
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
Docker with AWS credentials stored externally #67
Comments
This was helpful, thank you @jpvlsmv! My setup is slightly more complex, as I'm using an organization authentication account, and then assuming account profiles; I had to add some more flags, but this got it working for me:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I store my AWS credentials far, far away from my Terraform source code, preferring per-project access keys and a profile configured via
aws configure
. I add 2 additional options to my docker run command:-v ~/.aws:/root/.aws -e AWS_PROFILE=projectprofile \
Adding the volume ~/.aws gives the scripts access to the saved keys I have, and the environment tells which one to use.
Hope this may help somebody.
The text was updated successfully, but these errors were encountered: