What’s New
- Function availability validation — the
Fnbindings cover Terraform and OpenTofu, and synthesis validates function usage against your project’s declaredtargetVersions. - S3-native state locking — the
S3Backendcan now lock state with a native lock file via theuseLockfilefield, removing the need for a separate DynamoDB table.
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 at synth time against the project’s declared targetVersions, without executing any binary. Learn more. |