Upgrading to CDK for Terraform Version 0.15
0.15 is primarily focused around CLI improvements targeted at a better HCP Terraform integration.
Because of this, there are only smaller breaking changes in this release. The most notable one is a renaming of some interfaces / classes in our core library.
Some configuration classes were suffixed inconsistently with Config
, Props
or Options
and were renamed to Config
for consistency. These classes need to be used in C#, Java, and Go, therefore we have a breaking change in these languages.
Minimum version of Terraform increased to 1.2
CDKTF is bumping the minimum supported version of Terraform from 1.0 to 1.2 starting from CDKTF version 0.15. This change is necessary as CDKTF 0.15 uses the Terraform CLI for planning and applying changes for HCP Terraform and Terraform Enterprise instead of the API used in version 0.14.
Terraform promises compatibility between all v1.x releases, so there shouldn't be any issues with this change. The only changes between these versions are bug fixes, and new feature additions.
Please open an issue if you encounter any issues or bugs with this change.
Renaming of *Options
and *Props
to *Config
We had several exports where the configuration passed to constructs or functions was using a class with a different suffix than Config
. If you are using a language like C#, Java, or Go you might have needed to specify these classes in your CDKTF application. To simplify the usage we changed every suffix to be Config
, so if you currently use one of the others please rename them to use the Config
suffix. No options were changed in the process, only the names were aligned.
C#
Java
Go
Deprecation: We deprecate the feature flags that go into the context
field of the cdktf.json
file
CDKTF used to use feature flags to enable potentially breaking behaviors in a release. These are no longer needed since most of the changes we introduce from here can not be hidden behind feature flags. When the feature flags are removed, the behavior will be the same as this configuration: