Created
January 16, 2019 16:47
-
-
Save cab-jenkins/aa02d0a538eda48fd0eb7ddd3db141f9 to your computer and use it in GitHub Desktop.
docker_awscli
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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
# enable interruption signal handling | |
trap - INT TERM | |
docker run --rm \ | |
-t $(tty &>/dev/null && echo "-i") \ | |
-e "AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-eu-west-1}" \ | |
-v "$(pwd):/project" \ | |
mesosphere/aws-cli \ | |
"$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment