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

Amazon Web-ServicesAws Cli

Amazon Web-Services Problem Overview


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

Amazon Web-Services Solutions


Solution 1 - Amazon Web-Services

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionkellyfjView Question on Stackoverflow
Solution 1 - Amazon Web-ServicesspgView Answer on Stackoverflow