Skip to content

Commit

Permalink
feat(docs): Document built-in TerraformData resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarm committed Dec 7, 2023
1 parent 5135688 commit ecc3ba9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/docs/cdktf/concepts/resources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,10 @@ securitygroup.NewSecurityGroup(stack, jsii.String("security2"), &securitygroup.S
## Special Cases
### Built-in `terraform_data` resource
There is a special resource built into Terraform itself. It is called [`terraform_data`](/terraform/language/resources/terraform-data) and implements the standard resource lifecycle, but does not directly take any other actions. In CDKTF it is exposed as the `TerraformData` class and you can import it directly from the `cdktf` package.
### Large Resource Configurations
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 level, some attributes we directly expose as `any` on the top level config class.
Expand Down

0 comments on commit ecc3ba9

Please sign in to comment.