How to configure user profile in AWS CLI

We may need to deal with multiple AWS accounts in together. Also each accounts have their own id and access keys.

AWS CLI provides the option to configure multiple access keys as different profiles.

The following command can be used to create profile in AWS CLI.

#aws configure --profile profile-name

Here we need to replace profile-name with the required value. This command will ask for the id and access key as standard input.

Once this done, we can use this profile name for any AWS CLI commands. We just need to append "--profile profile-name" along with the command name.

Note that here we need to replace profile-name with the required value.

That's all…

Leave a Reply

Your email address will not be published. Required fields are marked *