Populating SSM in a sane way - from git via CICD

The title is fairly self explanatory. My google-fu has not found a solution yet, but I’m interested in help author something if nothing yet exists.

Manually managing SSM is a bad idea, for disaster recovery and sanity for both developers and Ops.

Storing them in git gives us a quick win in config history. Taking the git history and translating a folder path + yaml (?) files into SSM paths + key value pairs is a start. (What about string lists, complex data structures etc?) It could be tricky to move past high level key value pairs.

Could also add dynamoDB providers for example.

Question: Does anything like this exist?

Initial thoughts might be a config directory parsed by an aws-cdk app, mostly so deleting configs can also clean up SSM (which I think is a huge use case).

Ideas / solutions welcome!


Related discussions:

Take a look at Chamber to import the secrets into SSM. Typically you feed it JSON listings that could live in a git repository. You’d likely want to set up git-crypt to protect all the sensitive values stored in that repo.

It’s been my experience that managing secrets is just a goat rodeo and there aren’t a lot of great tools in this space.

Goat rodeos sound fun initially. lol

Thanks for bringing Chamber to the surface.

Chamber would suggest the import / export functions with files. Might be worth checking out, but cleanup would be hard. (you’d have to use git diff when a param is removed).

I know we’ll have a need for secure params, but initially trying to solve a different problem that is workflow based, not security based. The main thought is a minimal config hierarchy (donkey rodeo) that would resolve `/app1/dev/loglevel` first and then `/app1/common/loglevel` next for instance.

What you are describing sounds typical to me. Our app infrastructure code creates SSM parameters, documents, and state manager assignments regularly. Especially parameters. Create an EKS cluster? Save the endpoint to a parameter, save the kubeconfig file to an encrypted parameter. That way future stacks can easily reference them - much easier than cross stack exports/lookups.

My naming standard for parameters is:
/scope/identifier/resourceType/subtype

Some examples:
/local/appA/route53/hostedZoneId

/global/organization/orgId

Since this was all created with Cloudformation it is also easy to clean up with Cloudformation. Also simplifies reuse across accounts. Works great!

We have that use case as well. Depoy time auto publishing and resolution of parameters. Things like URL’s and RDS passwords etc.

This use case is a bit different, this is ‘out of band’ configuration (if `aws cloudformation deploy` is ‘in band’ .. ie in band of your .git repo’s release cycle). Configs that would have a production life cycle, and not be within the application itself.

It must be git based - but it seems like I’ll be rolling my own :slight_smile: