Skip to content

Instantly share code, notes, and snippets.

@andresvia
Last active August 1, 2018 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andresvia/00d83f7e3e16567e81a11d15914025d6 to your computer and use it in GitHub Desktop.
Save andresvia/00d83f7e3e16567e81a11d15914025d6 to your computer and use it in GitHub Desktop.
aws
#!/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