AWS secretsmanager documentation change
Summary
Updated CLI examples and added new create-secret example with tags
Security assessment
Added example shows tag usage but does not introduce security features. Existing warning about sensitive data in tags remains unchanged.
Diff
diff --git a/secretsmanager/latest/userguide/create_secret.md b/secretsmanager/latest/userguide/create_secret.md index dc7e5c3fa..9ebe712fd 100644 --- a//secretsmanager/latest/userguide/create_secret.md +++ b//secretsmanager/latest/userguide/create_secret.md @@ -85 +85 @@ You must have [Permissions for the KMS key](./security-encryption.html#security- - 2. (Optional) In the **Tags** section, add tags to your secret. For tagging strategies, see [Tag AWS Secrets Manager secrets](./managing-secrets_tagging.html). Don't store sensitive information in tags because they aren't encrypted. + 2. (Optional) In the **Tags** section, add tags to your secret. For tagging strategies, see [Tagging secrets in AWS Secrets Manager](./managing-secrets_tagging.html). Don't store sensitive information in tags because they aren't encrypted. @@ -137 +137,12 @@ The following [`create-secret`](https://awscli.amazonaws.com/v2/documentation/ap - --secret-string "{\"user\":\"diegor\",\"password\":\"EXAMPLE-PASSWORD\"}" + --secret-string '{"user":"diegor","password":"EXAMPLE-PASSWORD"}' + +###### Example Create a secret + +The following [`create-secret`](https://docs.aws.amazon.com/cli/latest/reference/secretsmanager/create-secret.html) example creates a secret with two tags. + + + aws secretsmanager create-secret \ + --name MyTestSecret \ + --description "My test secret created with the CLI." \ + --secret-string '{"user":"diegor","password":"EXAMPLE-PASSWORD"}' \ + --tags '[{"Key": "FirstTag", "Value": "FirstValue"}, {"Key": "SecondTag", "Value": "SecondValue"}]'