如何在 AWS CLI 配置文件和凭据文件中注释掉行?

对于 AWS CLI 配置文件和凭据文件,如何注释掉这些文件中的行——我查看了这里的文档 http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-config-files,但没有发现任何内容。

例如:。

~/. aws/凭证

[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
14906 次浏览

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