Ravi Sir's Cards › AWS
Secrets Manager
This revision card explains Secrets Manager. It starts from the need that passwords go in a locker, not code. On the card, the building blocks include create-secret from a file. The how-to section notes get-secret-value reads it. An example on the card is rotate-secret with a Lambda.
Read card text
What this card says
Why do we need it?
Passwords go in a locker, not code.
What is it?
create-secret from a file.
--secret-string file://db.json
How to do it
get-secret-value reads it.
| jq -r .user
Example
rotate-secret with a Lambda.
AutomaticallyAfterDays=30