(cdk migrate): process.stdout.clearLine is not a function
- Dominant language
- TypeScript
- Stars
- 105
- Forks
- 122
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 71
Description
### Describe the bug
Trying to execute `cdk migrate` in automation - e.g. CodeCatalyst workflow - fails
Similar issue to this one: [here](https://forum.cloudron.io/topic/9219/calling-build-inside-a-docker-container/3)
### Expected Behavior
I'd expect the workflow to complete but to log the errors or challenges.
### Current Behavior
Workflow fails with this error:
This command is an experimental feature.
Using the latest successful scan which is 0 days, 3 hours, and 19 minutes old.
No filters provided. Retrieving all resources from scan.
finding related resources.
Found 62 resources.
Generating CFN template from scanned resources.
Please wait, template creation in progress. This may take a couple minutes.
❌ Migrate failed for `myCloudFormationStack`: process.stdout.clearLine is not a function
process.stdout.clearLine is not a function
### Reproduction Steps
Execute `cdk migrate` in the codecatalyst workflow
### Possible Solution
use a logging framework instead of process.stdout - or maybe find a different way?
### Additional Information/Context
I am trying to execute `cdk migrate` in the context of a CodeCatalyst Workflow
https://github.com/aws/aws-cdk/blame/da0b82c21e1ddd3c301db8f98e39767e07ff32fc/packages/aws-cdk/lib/commands/migrate.ts#L449
### CDK CLI Version
latest
### Framework Version
_No response_
### Node.js Version
16
### OS
linux
### Language
TypeScript
### Language Version
_No response_
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.