vt-aws-sso-cli is an easy to use tool for AWS account login on the commandline. aws-sso creates AWS credentials in your user profile. You can now use awscli commands in your AWS account.
- Open a terminal, PowerShell window or DOS box and run aws-sso.
- Open a second terminal, PowerShell window or DOS box to execute your awscli commands.
- There isn't actually a step 3. If you keep the first terminal, PowerShell window or DOS box open, it will refresh your session token automatically.
Download the client
sudo -E curl -sL https://github.com/Vitesco-Technologies/vt-aws-sso-cli/releases/latest | grep browser_download_url | grep linux-x64 | cut -d '"' -f4 | xargs -n1 sudo curl -sL -o /usr/local/bin/aws-sso && sudo chmod 755 /usr/local/bin/aws-sso
sudo -E curl -sL https://github.com/Vitesco-Technologies/vt-aws-sso-cli/releases/latest | grep browser_download_url | grep linux-arm64 | cut -d '"' -f4 | xargs -n1 sudo curl -sL -o /usr/local/bin/aws-sso && sudo chmod 755 /usr/local/bin/aws-sso
sudo -E curl -sL https://github.com/Vitesco-Technologies/vt-aws-sso-cli/releases/latest | grep browser_download_url | grep macos-x64 | cut -d '"' -f4 | xargs -n1 sudo curl -sL -o /usr/local/bin/aws-sso && sudo chmod 755 /usr/local/bin/aws-sso
sudo -E curl -sL https://github.com/Vitesco-Technologies/vt-aws-sso-cli/releases/latest | grep browser_download_url | grep macos-arm64 | cut -d '"' -f4 | xargs -n1 sudo curl -sL -o /usr/local/bin/aws-sso && sudo chmod 755 /usr/local/bin/aws-sso
Note Due to mandatory code signing on macOS the executable has to be signed. An ad-hoc signature is sufficient. Sign your executable with the following command:
sudo codesign --sign - /usr/local/bin/aws-sso