https://serverless-stack.com/ logo
#help
Title
# help
r

Ross Gerbasi

02/21/2022, 3:31 PM
Hey all, curious what strategies folks are using with SSM references when updating their stacks. We are using
SecretValue.secretsManager
to add secret refs into our builds but then changing the secret value will not cause a delta, which means they get out of sync. We have been using a NONCE in a
.env
file we can randomize to force some updates, which isn't horrible but also not great. Is there a cleaner way to ask a stack to refresh its SSM references?
d

Derek Kershner

02/21/2022, 4:15 PM
There is a
version
param in there somewhere. Changing that creates a delta. Not using it just means “latest”, but being specific solves the issue.
r

Ross Gerbasi

02/21/2022, 5:38 PM
when you say "in there somewhere" what is there? 🙂 the stack?
d

Derek Kershner

02/21/2022, 7:00 PM
the params for
SSM.valueForStringParameter
r

Ross Gerbasi

02/21/2022, 7:01 PM
Ah thanks, I'll dig around see what I can find.
d

Derek Kershner

02/21/2022, 7:02 PM
class StringParameter (construct) · AWS CDK (amazon.com)
its the 3rd, optional param