Skip to content

(cli): import is not using a custom qualifier #32278

Open
@moltar

Description

@moltar

Describe the bug

Similar to #29179, cdk import ignores qualifier set in the cdk.json context and tries to use defaults.

Which results in a failure.

Supplying the stack name fixes the problem, but it's not a scalable approach.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

2.171.0

Expected Behavior

cdk import to respect the qualifier.

Current Behavior

Does not respect the qualifier.

Reproduction Steps

Use a custom qualifier.

Try to do an import with a large template.

Get an error:

❌ my-stack-name failed: Error: Template too large to deploy ("cdk bootstrap" is required)

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.171.0

Framework Version

No response

Node.js Version

22

OS

macOs

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.effort/mediumMedium work item – several days of effortp2package/toolsRelated to AWS CDK Tools or CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions