AWS Parameter Store has got to be one of my favorite things for gluing automation bits together. It’s a simple, hierarchical key-value service that can be access controlled with IAM.
I have found it useful to store these in SSM:
At work, I configured an Ansible playbook that provisions users in our
database. The password for each user is randomly generated and set on
the database user, if it does not exist already. Then Ansible puts the
value into Parameter Store (be sure to use a SecureString
!).
Applications can fetch the secrets directly from Parameter Store by being granted an IAM role with appropriate permissions. The configuration “just happens” and there are no secrets in version control.
Magnificent!