Skip to content

Error message when trying to deploy without bootstrap stack is confusing #34

Closed
@rix0rrr

Description

@rix0rrr

The error message reads as follows:

 ⏳  Starting deployment of stack cdk-build-pipelines...
The template for stack cdk-build-pipelines is 170837 bytes long, a CDK Toolkit stack is required for deployment of templates larger than 51,200 bytes. A CDK Toolkit stack can be created using cdk bootstrap '993655754359/us-east-1'
 ❌  Deployment of stack cdk-build-pipelines failed: Error: The template for stack cdk-build-pipelines is larger than 50,200 bytes, and no CDK Toolkit info was provided
The template for stack cdk-build-pipelines is larger than 50,200 bytes, and no CDK Toolkit info was provided

The very first error message seems fine. However:

  • Basically the same error is shown 3 times.
  • There is an inconsistency between the sizes mentioned: one is 51k, the other one is 50.
  • "No toolkit info provided" is too low-level to show to the user. "Toolkit info" is terminology internal to the Toolkit implementation, and does not concern the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions