(CLI): Deploy Stacks by Glob doesn't work with Stages #28297
Labels
bug
This issue is a bug.
cli
Issues related to the CDK CLI
effort/medium
Medium work item – several days of effort
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
When deploying from the CLI, I'd expect that
cdk deploy "beta*"
would deploybeta/stackA
,beta/stackB
, andbeta/X/stackC
. However, it seems the glob will not pass the/
marker.cdk deploy "beta/*"
works as expected.Expected Behavior
I would expect that any stacks matched by the glob would be deployed - this would be the happy path for deploying a whole Stage.
Current Behavior
Given:
Reproduction Steps
POC for a related issue: https://github.com/haljarrett/cdk-stage-issue
Execute
cdk deploy "beta*"
and find that no stacks are matched.Possible Solution
Suspect that this is a related issue to the one I opened yesterday: #28283, and maybe has to do with how stack names are matched in
cdk-toolkit.ts
.Additional Information/Context
No response
CDK CLI Version
2.114.1 (build 02bbb1d)
Framework Version
No response
Node.js Version
v20.6.0
OS
MacOS
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: