SSM Parameters and Secrets
This repo automates SSM parameters for service credentials and supports referencing existing ones.
Two paths:
- Create new parameters: set entries in
ssm_parametersor rely on autowiring fromiam_users. - Reference existing parameters: set
existing = trueandname.
Autowiring from IAM Users:
- Root
main.ssm_parameters.tfmerges in username and SES v4 SMTP password for eachiam_usersentry that includes anssmblock and has created an access key. - Parameters are named by the paths in the user’s
ssmblock, e.g.,/infra/smtp/username,/infra/smtp/password.
Module behavior:
modules/ssm_parametercreates parameters whenexisting = falseand reads whenexisting = true.
Example: