aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

cdk.json does not properly merge

Open rwalker777 opened this issue 7 years ago • 4 comments

If you place a context variable in ~/.cdk.json it is read and shows in the merged settings in verbose output from cdk synth. However it is discarded in the final context.

Reproduction Steps

place something like the below in ~/.cdk.json (makes sure it's not in cdk.json): { "context": { "userName": "bob" } }

Error Log

The final context output will not contain the ~/.cdk.json values.

Environment

  • CLI Version :
  • Framework Version:
  • OS :
  • Language :

Other


This is :bug: Bug Report

rwalker777 avatar Nov 01 '19 03:11 rwalker777

Reproduced issue where merged settings are not being utilized by the CLI. Looking into a fix

shivlaks avatar Nov 29 '19 13:11 shivlaks

Duplicates #10823 of merging context from ~/.cdk.json (... where I have added PR #12394)

bitbauer avatar Jan 07 '21 12:01 bitbauer

@shivlaks can you please link PR #12394 ?

bitbauer avatar Jan 10 '21 21:01 bitbauer

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Jan 11 '21 13:01 github-actions[bot]