- Install the AWS CLI
brew install awscli - Sign in
aws configurePaste an access key ID and secret from the AWS console (IAM). Using AWS SSO at work? Run aws configure sso instead.
Check it worked
- Check who you're signed in as
aws sts get-caller-identity
Undo it
- Uninstall and remove saved keys
brew uninstall awscli && rm -rf ~/.aws
- Install the AWS CLINeeds sudo
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscliv2.zip unzip awscliv2.zip sudo ./aws/installOn an ARM machine, change x86_64 to aarch64.
- Sign in
aws configurePaste an access key ID and secret from the AWS console (IAM). Using AWS SSO at work? Run aws configure sso instead.
Check it worked
- Check who you're signed in as
aws sts get-caller-identity
Undo it
- Uninstall and remove saved keysNeeds sudo
sudo rm -rf /usr/local/aws-cli /usr/local/bin/aws /usr/local/bin/aws_completer ~/.aws
- Install the AWS CLI
winget install Amazon.AWSCLIClose and reopen PowerShell afterwards.
- Sign in
aws configurePaste an access key ID and secret from the AWS console (IAM). Using AWS SSO at work? Run aws configure sso instead.
Check it worked
- Check who you're signed in as
aws sts get-caller-identity
Undo it
- Uninstall and remove saved keys
winget uninstall Amazon.AWSCLI; Remove-Item -Recurse "$env:USERPROFILE\.aws"