-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cdk --help has issues #2848
Comments
Is that true? I was under the impression we were outputting YAML.
What it should be is discutable. At the very least it's incorrect to say that the example is incorrect. It's a matter of workflow, preference and tooling.
|
Any ideas on how to set yaml output? Just updated to |
Sorry, I was completely wrong. The cdk commands output YAML by default and you need only use the -j flag to get JSON. |
I'm getting Json output only in |
Really? Here's the first 4 lines of cdk synth for the code created in the https://docs.aws.amazon.com/cdk/latest/guide/ecs_example.html:
|
Yes, console output is YML but looking into folder |
Excellent point. @rix0rrr? |
since 0.34, the yaml seems to be output to console (even when |
|
I'm going to close this issue as the title no longer covers its contents. Please use #2965 to discuss the output of YAML/JSON to output directories. |
It still states:
--json, -j Use JSON output instead of YAML
[boolean] [default: false]
Which makes no sense as it output JSON anyway. We need a -y (YAML) flag for those who want YAML
It also states:
--app, -a REQUIRED: command-line for executing your app or a cloud
assembly directory (e.g. "node bin/my-app.js") [string]
Which is also incorrect. The example should be "npx ts-node bin/my-app.ts"
Version:
The text was updated successfully, but these errors were encountered: