(migrate): Migrate command failed with an internal error
- Dominant language
- TypeScript
- Stars
- 105
- Forks
- 122
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 71
Description
### Describe the bug
I'm attempting to use the `--from-scan` option when running `cdk migrate` and the template creation failed with an internal error with no signs of what went wrong.
### Regression Issue
- [ ] Select this option if this issue appears to be a regression.
### Last Known Working CDK Version
N/A
### Expected Behavior
For the template to be created and a CDK created
### Current Behavior
CLI Output:
```bash
This command is an experimental feature.
Starting new scan for account unknown-account in region unknown-region
Resource scan in progress. Please wait, this can take 10 minutes or longer.
[████████████████████████████] (100%)
✅ Scan Complete!
Using the latest successful scan which is 0 days, 0 hours, and 5 minutes old.
No filters provided. Retrieving all resources from scan.
finding related resources.
Found 269 resources.
Generating CFN template from scanned resources.
Please wait, template creation in progress. This may take a couple minutes.
[CREATE_IN_PROGRESS] Template Creation in Progress ❌ Migrate failed for `MY_STACK_NAME`: Internal Error
```
When I look at the CloudFormation IaC generator template, the definition tab says
"See template resources for details of the failure."
and when I check the Template Resources tab, I see 269 resources and the template status for all of them is `COMPLETE`. The Template Generation Status is `Failed - Internal Error`
### Reproduction Steps
Command ran:
```bash
cdk migrate --stack-name MY_STACK_NAME --output-path OUTPUT_DIR --from-scan new
```
### Possible Solution
_No response_
### Additional Information/Context
Template ID: arn:aws:cloudformation:us-west-2:703889496698:generatedTemplate/eed6eec7-7304-4157-9e7c-6fdfd410f61f
### CDK CLI Version
2.1004.0 (build f0ad96e)
### Framework Version
_No response_
### Node.js Version
v18.19.0
### OS
macOS
### Language
TypeScript
### Language Version
_No response_
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.