aws / aws/aws-cdk

Allow us to define context values using YAML instead of JSON.

Open
#15,529 5 comments 3 reactions 0 assignees View on GitHub
effort/medium feature-request feature/enhancement p2 package/tools
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
1d 19h
Merged PRs (30d)
74

Description

Allow us to define context values using YAML instead of JSON.

### Use Case

Defining context using YAML will allow us to add comments. Looks like we have taken a step backwards. CFN used to require us to use JSON and then finally allowed us to use YAML. Now we have this great new tool but are required to use JSON again.

### Proposed Solution

Allow us to define context values using YAML instead of JSON, such as a cdk.context.yaml

### Other

* [ ] :wave: I may be able to implement this feature request
* [ ] :warning: This feature might incur a breaking change

---

This is a :rocket: Feature Request

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by locating the AWS CDK context-value loading entry point and determine how cdk.context.json is parsed; done means context values can also be defined in cdk.context.yaml, including comments, without losing existing JSON support.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, yaml
Domain
infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.