Skip to content

Instantly share code, notes, and snippets.

@sanjay-btc
Created December 20, 2018 06:23
Show Gist options
  • Save sanjay-btc/c332d6f8a886853d5071f0a08051ff70 to your computer and use it in GitHub Desktop.
Save sanjay-btc/c332d6f8a886853d5071f0a08051ff70 to your computer and use it in GitHub Desktop.
Install AWS Vault in Ubuntu
sudo curl -L -o /usr/local/bin/aws-vault https://github.com/99designs/aws-vault/releases/download/v4.2.0/aws-vault-linux-amd64
sudo chmod 755 /usr/local/bin/aws-vault
@hopeseekr
Copy link

More uptodate:

sudo curl -L -o /usr/local/bin/aws-vault https://github.com/99designs/aws-vault/releases/download/v6.3.1/aws-vault-linux-amd64
sudo chmod 755 /usr/local/bin/aws-vault

@RodrigoATorres
Copy link

RodrigoATorres commented Jan 31, 2022

sudo curl -L -o /usr/local/bin/aws-vault https://github.com/99designs/aws-vault/releases/download/v6.4.0/aws-vault-linux-amd64
sudo chmod 755 /usr/local/bin/aws-vault

@concrete-mixer
Copy link

concrete-mixer commented Feb 3, 2022

# always get latest version
sudo curl -L -o /usr/local/bin/aws-vault https://github.com/99designs/aws-vault/releases/latest/download/aws-vault-linux-amd64  
sudo chmod 755 /usr/local/bin/aws-vault

@mkarajohn
Copy link

# always get the latest version according to your system architecture
sudo curl -L -o /usr/local/bin/aws-vault https://github.com/99designs/aws-vault/releases/latest/download/aws-vault-linux-$(dpkg --print-architecture)
sudo chmod 755 /usr/local/bin/aws-vault

@tigerabrodi
Copy link

Thanks everyone, will try the approach by @mkarajohn! 🙏 ❤️

@bhattraideb
Copy link

@mkarajohn I am getting this error on ubuntu22.04, what is the hack for this:

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Warning: Failed to open the file /usr/local/bin/aws-vault: No such file or 
Warning: directory
  0 12.7M    0  1369    0     0   1528      0  2:26:09 --:--:--  2:26:09  1528
curl: (23) Failure writing output to destination

@mkarajohn
Copy link

@mkarajohn I am getting this error on ubuntu22.04, what is the hack for this:

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Warning: Failed to open the file /usr/local/bin/aws-vault: No such file or 
Warning: directory
  0 12.7M    0  1369    0     0   1528      0  2:26:09 --:--:--  2:26:09  1528
curl: (23) Failure writing output to destination

Have you created the directory aws-vault in usr/local/bin/ ?

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