Skip to content

fix(cli): warn users to review the code generated by cdk migrate - #2197

Merged
aws-cdk-automation merged 5 commits into
mainfrom
sai/improve-migrate-messaging
Dec 3, 2026
Merged

aws-cdk-automation merged 5 commits into
mainfrom
sai/improve-migrate-messaging

Conversation

@sai-ray

@sai-ray sai-ray commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

This PR improves the cdk migrate messaging by adding a warn that asks users to review the generated CDK code before running cdk synth or cdk deploy. Aso updates the cdk migrate section of the README to say the same.

Updated unit test coverage and manually tested it with cdk migrate --from-path.

Before:

$ cdk migrate --from-path /path/to/sqs-template.json --stack-name MyStack --language typescript
This command is an experimental feature.
 ⏳  Generating CDK app for MyStack...
.
.
.
✅ All done!

After:

$ cdk migrate --from-path /path/to/sqs-template.json --stack-name MyStack --language typescript
This command is an experimental feature.
 ⏳  Generating CDK app for MyStack...
.
.
.
✅ All done!
 ⚠️  The generated CDK code is based on the CloudFormation template or AWS resources you migrated. Review /path/to/MyStack/lib/my_stack-stack.ts before running `cdk synth` or `cdk deploy`.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@sai-ray
sai-ray requested a review from a team December 2, 2026 21:14
@sai-ray
sai-ray deployed to automation December 2, 2026 21:14 — with GitHub Actions Active
@github-actions github-actions Bot added the p2 label Dec 2, 2026

This branch was successfully deployed

2 active (1 outdated) and 1 inactive deployments
run-tests — 0a490570 Deployed Dec 3, 2026 by sai-ray via integ_init-templates (init-go, 24.19) #7839
no-approval — 0a490570 Deployed Dec 3, 2026 by sai-ray via prepare #7839
automation — 45199fe5 Deployed Dec 2, 2026 by sai-ray via Set AutoQueue on PR #2197 #4074
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants