Skip to content

cli: plugin option set in cdk.json is ignored #32814

@wiget

Description

@wiget

Describe the bug

The plugin option in the project's cdk.json file is ignored.

Regression Issue

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

Last Known Working CDK Version

2.173.4

Expected Behavior

The plugin option in the project's cdk.json file is honoured and defined plugins are used to obtain credentials.

Current Behavior

The plugin option in the project's cdk.json file is ignored.

Reproduction Steps

npx cdk init app --language=typescript --generate-only
jq '. += {"plugin": ["dummy"]}' < cdk.json > edited-cdk.json
mv edited-cdk.json cdk.json
npx cdk --debug -vvv --no-color version

In the output, there will be merged settings section. Look for plugin. If it's [] then the bug is present.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.174.0

Framework Version

No response

Node.js Version

22.11.0

OS

Ubuntu 24.04

Language

TypeScript

Language Version

Typescript (5.7.2)

Other information

No response

Metadata

Metadata

Assignees

Labels

@aws-cdk/coreRelated to core CDK functionalitybugThis issue is a bug.effort/smallSmall work item – less than a day of effortp1package/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