Easily switch profiles configured via AWS cli.
CLI tool which allows you to switch between multiple AWS CLI profiles.
Use cli without --profile <profile_name>
flag for every command. Your existing scripts work without profile settings!
NPM link : https://www.npmjs.com/package/aws-cli-switch
Run npx aws-cli-switch
in your terminal. Ensure you have node installed.
New shell(sh/bash) in MacOS/Linux or PowerShell in Windows is launched with the chosen profile :
You can verify the current profile using the aws configure list
command to verify the profile switch.
You can now use the AWS CLI as if the chosen profile was default.