-
-
Save eugenestarchenko/48321c6bd35da66e967f3e75ac640f54 to your computer and use it in GitHub Desktop.
Getting AWS Credentials into to a Docker Container without Hardcoding It
This file contains hidden or 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
| AWS_ACCESS_KEY_ID=$(aws --profile default configure get aws_access_key_id) | |
| AWS_SECRET_ACCESS_KEY=$(aws --profile default configure get aws_secret_access_key) | |
| docker build -t my_app . | |
| docker run -it --rm \ | |
| -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \ | |
| -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment