Terraform
Upgrading to CDK for Terraform Version 0.17
0.17 is focused around fixing issues with the AWS Quicksight resources. We also removed the deprecated feature flags that were used to enable potentially breaking changes in previous releases.
If you encounter breaking changes from the removal of these feature flags, use the MigrateIds
Aspect
at the root of your affected stacks to migrate resources to use the current form of id generation without their recreation.
AWS Quicksight
A few individual Terraform Resources have very deeply nested schemas with a lot of attributes. This blows up the config classes and slows down the code generation for languages besides TypeScript. To work around this we sometimes limit the depth of the config classes and use any
on deeper levels, and we directly expose some attributes as any
on the top level config class.
aws_quicksight_template.definition
,aws_quicksight_dashboard.definition
, andaws_quicksight_analysis.definition
are set toany
This means when configuring these attributes you need to pass in the configuration as objects and with snake case keys. Alternatively you can also use the escape hatch.
Removal: The feature flags that go into the context
field of the cdktf.json
file were removed
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. The behavior for 0.17 is the same as in 0.16 with this configuration:
{
"context": {
"excludeStackIdFromLogicalIds": "true",
"allowSepCharsInLogicalIds": "true"
}
}
You can remove these keys from your context
field in your cdktf.json
file.