-
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
aws-cdk: deploy metadata changes without resource changes #28205
Comments
Hi @JohnYoungers ,thanks for reaching out. You could try using this flag "--force" - https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk/README.md#cdk-deploy
Here is a detailed explanation of how to use '--force'. Let us know if this works for you. |
Hi @khushail - adding
|
We had the same issue, even though for us it was not an issue. However, since recently we can see that behavior changed, now metadata updates are not only showing in diff, but lead to a Stack update. Not sure if a change in Cloudformation or CDK caused this. |
Here we have to opposite request. |
Describe the bug
I have an embedded secret resolve that I'd like re-calculated on-demand for a given stack: it sounds like the easiest way to accomplish this is to add an item to the template that will result in a small change in order to trigger checking the secret's latest value.
To do so I've added this to the example stack:
this.addMetadata("SecretResolveTrigger", new Date());
Running
cdk diff
will display the change:However, running
cdk deploy
will not update the value:Is there a way to update the template even when there are no changes? Or is there a better way to re-trigger an embedded resolve?
Expected Behavior
I'd expect the metadata to be updated in the template even though no other resource was updated
Current Behavior
Nothing is updated in cloudformation
Reproduction Steps
Create a stack, including an
.addMetadata("SecretResolveTrigger", new Date());
entry, and runnpx cdk deploy
twice: notice the metadata was not updated the second timePossible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.81.0
Framework Version
No response
Node.js Version
21.2.0
OS
Windows 10
Language
TypeScript
Language Version
5.2.2
Other information
No response
The text was updated successfully, but these errors were encountered: