Skip to content

(flags): flags commands do not forward context parameters to synth #918

@BDeus

Description

@BDeus

Describe the bug

When running cdk flags commands the necessary context parameters to synthetize stacks are not forward when running a --set command

Regression Issue

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

Last Known Working CDK Version

No response

Expected Behavior

cdk -c foo=bar flags --unstable=flags --set --recommended --all should use the foo parameter when synth the stack

Current Behavior

Stack are not synth due to mandatory context not present
This app contains no stacks

Reproduction Steps

use a context variable in stack and throw exception if not present

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.1030.0

Framework Version

No response

Node.js Version

22.20.0

OS

macos

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions