-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Hausenblas <hausenbl@amazon.com>
- Loading branch information
1 parent
8492a36
commit 2196c5d
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
## Secrets Manager | ||
|
||
To tag the secret `arn:aws:secretsmanager:us-west-2:123456789012:secret:mysecret-12345` | ||
with `some=thing`, use the following: | ||
|
||
```sh | ||
# tag: | ||
$ awsometag arn:aws:secretsmanager:us-west-2:123456789012:secret:mysecret-12345 some=thing | ||
2020/01/08 09:27:28 Tagging secret 'mysecret' in region 'us-west-2' with some:thing | ||
|
||
# verify the tagging: | ||
$ aws secretsmanager describe-secret \ | ||
--secret-id mysecret | ||
{ | ||
"ARN": "arn:aws:secretsmanager:us-west-2:123456789012:secret:mysecret-12345", | ||
"Name": "mysecret", | ||
"Tags": [ | ||
{ | ||
"Key": "some", | ||
"Value": "other" | ||
} | ||
], | ||
... | ||
} | ||
``` |