(cdk migrate): process.stdout.clearLine is not a function #29173
Labels
@aws-cdk/aws-lambda
Related to AWS Lambda
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
Trying to execute
cdk migrate
in automation - e.g. CodeCatalyst workflow - failsSimilar issue to this one: here
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 functionprocess.stdout.clearLine is not a function
Reproduction Steps
Execute
cdk migrate
in the codecatalyst workflowPossible 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 Workflowhttps://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
The text was updated successfully, but these errors were encountered: