question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cdk synth with multiple stacks writes success message to stderr

See original GitHub issue

Executing 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:open
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, May 29, 2020

Any updates on this???

0reactions
braekeveltcommented, Aug 19, 2022

@shivlaks @NGL321 @rix0rrr Do any of you care to fix this small annoyance?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found