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.

[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:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
kpeters-cbsicommented, Nov 5, 2020

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 local cdk.json to contain local configuration and overrides. Otherwise, as I said above, what’s the point of ~/.cdk.json?

2reactions
bitbauercommented, Jan 7, 2021

@kpeters-cbsi @robertd Your comments on expected behavior of merging context from ~/.cdk.json are relating to #10823 (… where I have added a PR)

Read more comments on GitHub >

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

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