DEV Community

Rola Dali
Rola Dali

Posted on

Did You Know? AWS profiles

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

Reference

Now you can store credentials from many accounts and use them in the same session!

Reference

Now You Know!

Top comments (0)