-
-
Save andresvia/00d83f7e3e16567e81a11d15914025d6 to your computer and use it in GitHub Desktop.
aws
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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
trap - INT TERM | |
docker run --rm \ | |
-t $(tty &>/dev/null && echo "-i") \ | |
-e AWS_ACCESS_KEY_ID \ | |
-e AWS_SECRET_ACCESS_KEY \ | |
-e AWS_SESSION_TOKEN \ | |
-e AWS_DEFAULT_REGION \ | |
-e AWS_DEFAULT_OUTPUT \ | |
-e AWS_PROFILE \ | |
-e AWS_CA_BUNDLE \ | |
-e AWS_SHARED_CREDENTIALS_FILE \ | |
-e AWS_CONFIG_FILE \ | |
-u $(id -u):$(id -g) \ | |
-v "$(pwd):$(pwd)" \ | |
-w "$(pwd)" \ | |
mesosphere/aws-cli \ | |
"$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment