What’s New
- Function availability validation — the
Fnbindings cover Terraform and OpenTofu, and synthesis validates function usage against your installed CLI version.
Feature Flags
Some new behaviors ship behind feature flags to preserve backwards compatibility for existing projects. Projects created withcdktn init get
all current flags enabled in the context section of their cdktf.json;
existing projects can opt in by adding the entries manually. In the next major
release these behaviors become the default.
| Flag | Behavior when enabled |
|---|---|
failOnConstructsOutsideOfStacks | Synthesis throws if constructs are scoped directly to the App instead of a TerraformStack. |
validateFunctionVersions | Functions used through Fn are validated against the installed Terraform/OpenTofu version. Learn more. |