Last active
May 9, 2019 08:07
-
-
Save rubencabrera/51904508cbfd823855a31b3c217aed4a to your computer and use it in GitHub Desktop.
Alias to execute aws from mesosphere container
This file contains hidden or 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
# 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this to a sourced file or at the end of
~/.bashrc