Skip to content

Instantly share code, notes, and snippets.

@cab-jenkins
Created January 16, 2019 16:47
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 cab-jenkins/aa02d0a538eda48fd0eb7ddd3db141f9 to your computer and use it in GitHub Desktop.
Save cab-jenkins/aa02d0a538eda48fd0eb7ddd3db141f9 to your computer and use it in GitHub Desktop.
docker_awscli
#!/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