Created
February 10, 2021 07:10
-
-
Save jarrodldavis/cefb896649db10992c47fbb4aea8d3aa to your computer and use it in GitHub Desktop.
AWS CLI Docker
This file contains 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
#!/bin/bash | |
docker run \ | |
--interactive \ | |
--tty \ | |
--rm \ | |
--volume ~/.aws:/root/.aws \ | |
--volume $(pwd):/aws \ | |
--network=host \ | |
--env "$(env | grep AWS_ | cut -f1 -d=)" \ | |
amazon/aws-cli "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment