-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(ssm): latest parameter value with dynamic reference #14205
Conversation
aws-cdk/packages/aws-cdk/lib/api/deploy-stack.ts Lines 220 to 227 in 7966f8d
and aws-cdk/packages/aws-cdk/lib/api/util/cloudformation.ts Lines 427 to 432 in 7966f8d
= stacks that previously had Parameters with default values to reference latest SSM parameters where never skipped now they will be... |
Decided to not skip deploy if a |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Hi @jogold This change doesn't work if you are trying to update a stack without changing the template, because CF does not register these |
@MrArnoldPalmer what do you think? I understand how it breaks things here for this use case but on the other hand the new behavior is more deterministic which is more in line with how the CDK normally behaves? @mjgp2 how are you updating the SSM value? manually and then you don't want to copy the new version in your stack? |
SSM values can be updated by a whole bunch of processes within Ops. The main thing for us it to be able to apply these SSM parameters to an existing cloudformation stack as part of automation (such as CI or release processes) but guarantee no change in the stack other than the parameters. Difference IAM roles are allowed to update certain SSM parameters than update a stack. It seems fundamentally that perhaps this is a cloudformation issue, because my expectation (even without using CDK) would be that I can refresh the parameters in a stack. This inline syntax does not allow it. As this is a breaking change I would very much suggest that there is the option for either underlying CF template to be generated while CF sorts out the differences between the parameter behaviour and the inline template behaviour. |
Thanks for this @jogold - I'm not sure that the CF team realises this difference in behaviour. Seems very odd! |
CloudFormation now allows referencing the latest Systems Manager parameter values in templates without specifying parameter versions using dynamic references. Remove the "trick" with the `Parameter` using a default value. See https://aws.amazon.com/about-aws/whats-new/2021/04/now-reference-latest-aws-systems-manager-parameter-values-in-aws-cloudformation-templates-without-specifying-parameter-versions/ ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
CloudFormation now allows referencing the latest Systems Manager parameter values in templates without specifying parameter versions using dynamic references. Remove the "trick" with the `Parameter` using a default value. See https://aws.amazon.com/about-aws/whats-new/2021/04/now-reference-latest-aws-systems-manager-parameter-values-in-aws-cloudformation-templates-without-specifying-parameter-versions/ ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
CloudFormation now allows referencing the latest Systems Manager parameter
values in templates without specifying parameter versions using dynamic
references.
Remove the "trick" with the
Parameter
using a default value.See https://aws.amazon.com/about-aws/whats-new/2021/04/now-reference-latest-aws-systems-manager-parameter-values-in-aws-cloudformation-templates-without-specifying-parameter-versions/
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license