-
Notifications
You must be signed in to change notification settings - Fork 4.4k
(cli): Stack undefined in cdk deploy output #31685
Copy link
Copy link
Closed
Labels
bugThis issue is a bug.This issue is a bug.p2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI
Description
Describe the bug
Running cdk deploy using the cli seems to return 'Stack undefined' in some cases.
Regression Issue
- Select this option if this issue appears to be a regression.
Last Known Working CDK Version
v2.160.0
Expected Behavior
To either show:
Stack <stackName>
Or nothing.
Current Behavior
I receive output like this:
sc-pipeline/test/queues (queues)
Stack undefined
sc-pipeline/test/queues (queues): deploying... [2/12]Reproduction Steps
Run
cdk deploy.
Possible Solution
I included a PR. The cause I suppose is related to bcf9209#diff-c7b9751a4ca56b6ee26510c9f650f6d5328f5be39071c93165aadbc138496eddR130. To resolve this, I just copied the condition found on line 42 of the same file, as it checks if stackName is defined or not. The comment on the line above seems to be identical as well.
Additional Information/Context
No response
CDK CLI Version
2.161.1 (build 0a606c9)
Framework Version
No response
Node.js Version
v18.20.4
OS
macOS 14.6.1 (23G93)
Language
TypeScript
Language Version
No response
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.p2package/toolsRelated to AWS CDK Tools or CLIRelated to AWS CDK Tools or CLI