(cdk-migrate): UpdateReplacePolicy is not defined #29635
Labels
bug
This issue is a bug.
cli
Issues related to the CDK CLI
effort/medium
Medium work item – several days of effort
p1
package/tools
Related to AWS CDK Tools or CLI
toolkit/migrate
Related to cdk migrate
Describe the bug
I'm using CDK migrate to create a CDK app for my already deployed CloudFormation Stack.
The CFN template contains an AWS::Logs::LogGroup with the following property:
This gets migrated into the following L1 construct code:
which after synth gives us:
UpdateReplacePolicy did not exist.
Expected Behavior
It was assumed that the UpdateReplacePolicy setting would be included after cdk migrate.
Current Behavior
After migrating the CloudFormation stack with cdk migrate, UpdateReplacePolicy did not exist.
Reproduction Steps
see above CFN snippet
Possible Solution
No response
Additional Information/Context
When you run the cdk diff command, the UpdateReplacePolicy is removed.
cdk diff command results:
CDK CLI Version
2.133.0
Framework Version
No response
Node.js Version
v20.12.0
OS
Linux
Language
TypeScript
Language Version
~5.3.3
Other information
No response
The text was updated successfully, but these errors were encountered: