aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.4k stars 3.8k forks source link

(aws-ssm): Clarification on SSM Parameter Overwriting Needed #14051

Open shellscape opened 3 years ago

shellscape commented 3 years ago

There's a lot of opacity around how, when, and by what mechanism StringParameter constructs overwrite previous, existing, or modified parameter values. Through our own experiments, we know the following conditions exist:

I'm unable to find any documentation or explanation as to the mechanisms that determine when CDK updates a parameter value, and under what conditions. Source diving the ssm package didn't reveal any clues either. This is currently "black box" or "magic" and it goes without saying that's not great.

I'd love to see some information around this and the mechanisms involved (including if metadata is involved, and where that metadata lives), even if only as a reply to this issue. Official documentation would of course assist the entire userbase.


This is a 📕 documentation issue

MrArnoldPalmer commented 3 years ago

So the StringParameter is mostly just creating a SSM::Parameter cloudformation resource, so some of the idiosyncrasies you're describing may be found in the CFN documentation, though I don't see any during a cursory glance. Either way it would be good to investigate and understand all of the lifecycle for creation/update of ssm parameters from the CDK perspective and document those.

github-actions[bot] commented 2 years ago

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

shellscape commented 2 years ago

I'd like to keep this open given the previous reply indicates it's valuable.