Skip to content

Instantly share code, notes, and snippets.

@jjhoncv
Last active November 29, 2018 19:14
Show Gist options
  • Save jjhoncv/b3b98f548fb319805bfbe8b9ece6bfe1 to your computer and use it in GitHub Desktop.
Save jjhoncv/b3b98f548fb319805bfbe8b9ece6bfe1 to your computer and use it in GitHub Desktop.
Instalation AWS y configuration con ECR

Installing the AWS Command Line Interface

Install Pip on Ubuntu >= 16.04

$ sudo apt-get install python-pip

Installing the AWS CLI with Pip

a. Use pip to install the AWS CLI.

$ pip install awscli --upgrade --user

b. Add an export command to your profile script.

To modify your PATH variable (Linux, macOS, or Unix)

  1. Find your shell's profile script in your user folder. If you are not sure which shell you have, run echo $SHELL.
$ ls -a ~

In the file ~/.zshrc or ~/.bashrc add line.

export PATH=~/.local/bin:$PATH

Configuration AWS

$ aws configure
  • Need AWS Access Key ID
  • Need AWS Secret Access Key
  • Default region name: None
  • Default output format: None

Access ECR but download image node

$ aws --region eu-west-1  ecr get-login --no-include-email | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment