validateFunctionVersions feature flag
(cdk-terrain#362).
In v0.23.4 the validation was opt-in.
What changed
- Every
TerraformStackchecks the functions you use throughFnagainst your project’s declaredtargetVersions. If you don’t declaretargetVersions, CDKTN checks against{ "terraform": ">=1.5.7", "opentofu": ">=1.6.0" }. - The
validateFunctionVersionscontext key no longer has any effect. If yourcdktf.jsonstill sets it, CDKTN ignores it, whether it’s"true"or"false". You can’t turn the validation off with it anymore. cdktn initno longer adds the key to new projects.
base64gunzip,
cidrcontains, convert, ephemeralasnull, issensitive,
templatestring, and urldecode. If your project doesn’t use them, nothing
changes for you.
What you see
If you use one of these functions outside its supported range, synthesis fails:How to fix a failure
Pick one of these:-
Raise the floor of each product you target to a version that has the
function. For
templatestring: -
Drop a product you don’t deploy with. If you only use OpenTofu,
declare only
opentofu. CDKTN then doesn’t check Terraform. - Stop using the function, if you need to support older versions.
-
Skip all validations with
skipValidation: trueon theApp. This also turns off every other synth-time validation.