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
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With