Skip to content

(cli) Early Validation error during bootstrap #1032

@mrgrain

Description

@mrgrain

Based on this comment: #1000 (comment)

cdk bootstrap may result in failed AWS::EarlyValidation checks with errors hidden. In this case we should attempt to call the API to retrieve more detailed output.

According to this:

https://docs.amplify.aws/react/build-a-backend/troubleshooting/cdktoolkit-stack/

~ $ cdk bootstrap aws://$(aws sts get-caller-identity --query Account --output text)/$AWS_REGION
⏳ Bootstrapping environment aws://xxxxxxxxxx/eu-central-1...
Trusted accounts for deployment: (none)
Trusted accounts for lookup: (none)
Using default execution policy of 'arn:aws:iam::aws:policy/AdministratorAccess'. Pass '--cloudformation-execution-policies' to customize.
CDKToolkit: creating CloudFormation changeset...
❌ Environment aws://xxxxxxxxxx/eu-central-1 failed bootstrapping: ToolkitError: Failed to create ChangeSet cdk-deploy-change-set on CDKToolkit: FAILED, The following hook(s)/validation failed: [AWS::EarlyValidation::ResourceExistenceCheck]. To troubleshoot Early Validation errors, use the DescribeEvents API for detailed failure information.

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