cdk deploy --hotswap: set the same value as the stack, it won't be deployed. #31728
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
@aws-cdk/core
Related to core CDK functionality
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the feature
Problem:
cdk deploy --hotswap
does not update the Lambda function's environment value.This happens when set to the same value as the CFn stack.
Cause:
To compare the CFn stack template with the CDK project code. If the value is the same as the CFn stack template, no change is detected.
Reproduce:
Continue the tutorial below to step 5. (Step 5: Deploy your application)
https://docs.aws.amazon.com/cdk/v2/guide/serverless_example.html
cdk-hello-world/lib/cdk-hello-world-stack.ts
: Add environmentcdk deploy
cdk-hello-world/lib/cdk-hello-world-stack.ts
: Change value2cdk deploy --hotswap
cdk-hello-world/lib/cdk-hello-world-stack.ts
: Change value1cdk deploy --hotswap
It does not change the environment value.
Deploy Console(no changes was displayed)
Use Case
I want to do a test by returning to the values in the CFn stack template.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2.158.0
Environment details (OS name and version, etc.)
macOS Sonoma
The text was updated successfully, but these errors were encountered: