-
Notifications
You must be signed in to change notification settings - Fork 459
/
features.ts
25 lines (24 loc) · 1.29 KB
/
features.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (c) HashiCorp, Inc
// SPDX-License-Identifier: MPL-2.0
// --------------------------------------------------------------------------------
// This file defines context keys that enable certain features that are
// implemented behind a flag in order to preserve backwards compatibility for
// existing apps. When a new app is initialized through `cdk init`, the CLI will
// automatically add enable these features by adding them to the generated
// `cdktf.json` file. In the next major release of the CDK for Terraform, these feature flags
// will be removed and will become the default behavior.
// --------------------------------------------------------------------------------
/**
* This map includes context keys and values for feature flags that enable
* capabilities "from the future", which we could not introduce as the default
* behavior due to backwards compatibility for existing projects.
*
* New projects generated through `cdktf init` will include these flags in their
* generated `cdktf.json` file.
*
* When we release the next major version of the CDK for Terraform, we will flip the logic of
* these features and clean up the `cdktf.json` generated by `cdktf init`.
*
* Tests must cover the default (disabled) case and the future (enabled) case.
*/
export const FUTURE_FLAGS = {};