Created
May 13, 2017 13:58
-
-
Save goindwalia/4843ac83a87920f0fe167cc29c417b48 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
pip install --upgrade --user awscli | |
mkdir -p ~/.aws && chmod 755 ~/.aws | |
cat << EOF > ~/.aws/credentials | |
[default] | |
aws_access_key_id = XXXXXX | |
aws_secret_access_key = XXXXXX | |
EOF | |
cat << EOF > ~/.aws/config | |
[default] | |
output = json | |
region = XXXXX | |
EOF | |
chmod 600 ~/.aws/credentials | |
ecr-login=$(aws ecr get-login --region XXXXX) | |
$ecr-login |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment