Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you comment out lines in AWS CLI config and credentials files?

For AWS CLI configuration and credentials files how do you comment out lines in these files - I checked the documentation here http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-config-files but found nothing.

e.g.

~/.aws/credentials

[default] aws_access_key_id = XXXXXXXXX aws_secret_access_key = YYYYYYYY  [qa] aws_access_key_id = AAAAAAAAA aws_secret_access_key = BBBBBB 

~/.aws/config

[default] region = us-east-1  [profile qa] region = us-west-2  [profile staging] region = us-east-2 
like image 302
kellyfj Avatar asked Apr 04 '17 20:04

kellyfj


People also ask

How do you comment on AWS?

To add a general comment, in Comments on changes, enter your comment, and then choose Save. You can use Markdown , or you can enter your comment in plaintext. To add a comment to a file in the commit, find the name of the file. Choose Comment on file, enter your comment, and then choose Save.

Which of the following command is used to configure credentials in AWS CLI?

To list all configuration data, use the aws configure list command. This command displays the AWS CLI name of all settings you've configured, their values, and where the configuration was retrieved from. To list all your profile names, use the aws configure list-profiles command.

How do I verify AWS CLI credentials?

To validate a user's credentials with the AWS CLI, run the sts get-caller-identity command. The command returns details about the user's credentials if they are valid, otherwise it throws an error.


1 Answers

You can comment lines by using the # character, e.g.

[default] aws_access_key_id = XXXXXXXXX aws_secret_access_key = YYYYYYYY  #[qa] #aws_access_key_id = AAAAAAAAA #aws_secret_access_key = BBBBBB 
like image 179
spg Avatar answered Oct 17 '22 08:10

spg