Hosting » AWS » How do I change my AWS CLI profile?

How do I change my AWS CLI profile?

Last updated on September 25, 2022 @ 5:39 pm

AWS CLI profiles allow you to configure the AWS CLI to work with certain AWS services or use specific AWS tools. To create a new profile, use the AWS create-profile command.

To modify an existing profile, use the AWS modify-profile command.

To create a new AWS CLI profile, use the following command:

AWS create-profile my-new-profile

To modify an existing AWS CLI profile, use the following command:

AWS modify-profile my-existing-profile my-new-profile

The following are some options for modifying a profile:

Name Description

AWS configure-profile Sets the AWS CLI configuration for the profile.

PRO TIP: If you are changing your AWS CLI profile, be sure to back up your current profile first. You will need to provide your new profile information, as well as the old profile information, in order to complete the process.

AWS enable-profile Enables the profile.

AWS disable-profile Disables the profile.

AWS list-profiles Shows the profiles in the system.

AWS list-tools Shows the AWS tools that are enabled for the profile.

AWS list-resources Lists the resources that are available for use with the profile.

AWS rm-profile Deletes the profile.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.