mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 12:45:59 +02:00
aws-secretsmanager: add page (#6131)
Co-authored-by: Axel Navarro <navarroaxel@gmail.com> Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
This commit is contained in:
parent
f50ae7e905
commit
99b5b6d5d7
1 changed files with 32 additions and 0 deletions
32
pages/common/aws-secretsmanager.md
Normal file
32
pages/common/aws-secretsmanager.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# aws secretsmanager
|
||||
|
||||
> Store, manage, and retrieve secrets.
|
||||
> More information: <https://docs.aws.amazon.com/cli/latest/reference/secretsmanager/>.
|
||||
|
||||
- Show secrets stored by the secrets manager in the current account:
|
||||
|
||||
`aws secretsmanager list-secrets`
|
||||
|
||||
- Create a secret:
|
||||
|
||||
`aws secretsmanager create-secret --name {{name}} --description "{{secret_description}}" --secret-string {{secret}}`
|
||||
|
||||
- Delete a secret:
|
||||
|
||||
`aws secretsmanager delete-secret --secret-id {{name_or_arn}}`
|
||||
|
||||
- View details of a secret except for secret text:
|
||||
|
||||
`aws secretsmanager describe-secret --secret-id {{name_or_arn}}`
|
||||
|
||||
- Retrieve the value of a secret (to get the latest version of the secret omit `--version-stage`):
|
||||
|
||||
`aws secretsmanager get-secret-value --secret-id {{name_or_arn}} --version-stage {{version_of_secret}}`
|
||||
|
||||
- Rotate the secret immediately using a Lambda function:
|
||||
|
||||
`aws secretsmanager rotate-secret --secret-id {{name_or_arn}} --rotation-lambda-arn {{arn_of_lambda_function}}`
|
||||
|
||||
- Rotate the secret automatically every 30 days using a Lambda function:
|
||||
|
||||
`aws secretsmanager rotate-secret --secret-id {{name_or_arn}} --rotation-lambda-arn {{arn_of_lambda_function}} --rotation-rules AutomaticallyAfterDays={{30}}`
|
Loading…
Add table
Reference in a new issue