[CLI] Where can I find an example of ~/.cdk.json file configuration
See original GitHub issue❓ General Issue
The Question
Hello,
I’m trying to use newly issued fix for progress bar vs events on a more global level. I’ve tried creating ~/.cdk.json
but I can’t seem to get it right. I haven’t seen any examples in docs showing how to properly configure ~/.cdk.json
globally.
Can you please provide an example how to do this?
Thanks!
Environment
- CDK CLI Version: 1.63.0
- Node.js Version: v14.11.0
- OS: OSX Mojave
- Language (Version): TypeScript (3.8.3)
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
AWS CDK Toolkit (cdk command) - AWS Documentation
First, and most commonly, it can be specified using the app key inside the file cdk.json . This is in the main directory...
Read more >4 Methods to configure multiple environments in the AWS CDK
We will first look at using the context variables in the cdk.json file, then move those same variables out to YAML files.
Read more >What does CDK.JSON do in AWS CDK | bobbyhadz
When we initialize a new CDK app with the cdk init command the CDK CLI bootstraps a cdk.json file in the root directory....
Read more >How To Statically Type CDK Configurations For Multiple ...
Configuration File. The first step is to add your configuration values to the context key in the cdk.json file for each environment.
Read more >Configuration File - CDK for Terraform - HashiCorp Developer
The cdktf.json file is where you can supply custom configuration settings for your application and define the providers and modules that you want...
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 Free
Top 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
Merge logic may be confusing, but without it,
~/.cdk.json
is pretty well useless. As a developer who works on a number of different small projects in CDK, I would expect~/.cdk.json
to contain global configuration values - such as setting progress to bar vs. events, or a default language, and the localcdk.json
to contain local configuration and overrides. Otherwise, as I said above, what’s the point of~/.cdk.json
?@kpeters-cbsi @robertd Your comments on expected behavior of merging context from ~/.cdk.json are relating to #10823 (… where I have added a PR)