Do you have multiple accounts and are starting to use the CLI?
Use AWS named profiles for the AWS CLI to interact with different accounts.
Using named profiles:
To set up a new profile:
aws configure --profile myprodprofile
To use a specific profile:
aws s3 ls s3://mybucket --profile myprodprofile
Now you can store credentials from many accounts and use them in the same session!
Top comments (0)