Skip to content

Instantly share code, notes, and snippets.

@Aishwaran
Forked from ruanbekker/awscli_v2_ubuntu.md
Created February 3, 2025 16:52
Show Gist options
  • Save Aishwaran/196df2222eff1a393c1e4fa28debeded to your computer and use it in GitHub Desktop.
Save Aishwaran/196df2222eff1a393c1e4fa28debeded to your computer and use it in GitHub Desktop.

Revisions

  1. @ruanbekker ruanbekker created this gist Feb 23, 2021.
    18 changes: 18 additions & 0 deletions awscli_v2_ubuntu.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    ```
    $ apt update
    $ apt search awscli
    $ apt install curl wget unzip -y
    $ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
    $ unzip awscliv2.zip
    $ ./aws/install
    $ aws --version
    aws-cli/2.1.28 Python/3.8.8 Linux/4.19.121-linuxkit exe/x86_64.ubuntu.20 prompt/off
    ```

    For ecr-login:

    ```
    $ export AWS_PAGER=
    $ export AWS_SHARED_CREDENTIALS_FILE=~/.aws/credentials
    $ aws --profile dev ecr get-login-password | docker login --username AWS --password-stdin ${accountid}.dkr.ecr.${region}.amazonaws.com
    ```