Skip to content

Instantly share code, notes, and snippets.

@jbouse
Last active July 10, 2018 15:06
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 jbouse/5fd3d81a45f463d1fab9d332d9136c36 to your computer and use it in GitHub Desktop.
Save jbouse/5fd3d81a45f463d1fab9d332d9136c36 to your computer and use it in GitHub Desktop.
#!/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") \
$(echo "-e AWS_PROFILE=${AWS_PROFILE:-dev}") \
-v ${HOME}/.aws:/root/.aws \
-v $(pwd):/project \
mesosphere/aws-cli \
$@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment