Skip to content

Instantly share code, notes, and snippets.

@rubencabrera
Last active May 9, 2019 08:07
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 rubencabrera/51904508cbfd823855a31b3c217aed4a to your computer and use it in GitHub Desktop.
Save rubencabrera/51904508cbfd823855a31b3c217aed4a to your computer and use it in GitHub Desktop.
Alias to execute aws from mesosphere container
# AWS CLI docker container
# Needs these env variables for the AWS account:
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION
alias aws='docker run --rm -t -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}" -v "$(pwd):/project" mesosphere/aws-cli'
@rubencabrera
Copy link
Author

Add this to a sourced file or at the end of ~/.bashrc

@rubencabrera
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment