cdk synth with multiple stacks writes success message to stderr
See original GitHub issueExecuting cdk synth
writes to stderr and not to stdout when running over multiple stacks without supplying the stack name. The execution is successful (with return code 0). The output is
Successfully synthesized to <redacted>/cdk.out
Supply a stack id (stack1, stack2) to display its template.
I would expect to find the return message in my stdout and not in stderr. If I supply a stack name and run cdk synth stack1
then the output goes to stdout and stderr is empty.
Reproduction Steps
Define multiple stacks in source code. Then run:
cdk synth > stdout 2>stderr
Environment
- CLI Version: 1.19.0 (build 5597bbe)
- Framework Version: 1.19.0
- OS: Fedora 31
- Language: Python 3.7.5
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Troubleshooting common AWS CDK issues
You are deploying a stack that requires bootstrap resources, but are using an IAM role or account that lacks permission to write to...
Read more >CodeBuild failing to run CDK synth - Stack Overflow
I've been able to check which was the error by running npm run cdk synth -- -v -o dist command in my buildspec.yml...
Read more >AWS CDK Toolkit - npm
If there are multiple stacks in your application, cdk synth will synthesize the cloud assembly to cdk.out . $ # Synthesize cloud assembly...
Read more >@aws-cdk/app-delivery | Yarn - Package Manager
Stacks that make use of Asset s cannot be deployed successfully. Getting Started. In order to add the PipelineDeployStackAction to your CodePipeline, you...
Read more >AWS CDK - Gotchas, Tips, and Tricks
The CDK starts out configured to deploy a single stack, but you may find yourself in a position where having multiple stacks makes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any updates on this???
@shivlaks @NGL321 @rix0rrr Do any of you care to fix this small annoyance?