TerraformResource represents a resource in Terraform.
TerraformMetaArguments
All resources support the following meta-arguments:| Property | Type | Description |
|---|---|---|
dependsOn | ITerraformAddressable[] | Explicit dependencies. |
count | number | TerraformCount | Resource count. |
provider | TerraformProvider | Specific provider instance. |
lifecycle | TerraformResourceLifecycle | Lifecycle configuration. |
forEach | TerraformIterator | Iterator for multiple resources. |
TerraformResourceLifecycle
| Property | Type | Description |
|---|---|---|
createBeforeDestroy | boolean | Create new resource before destroying old one. |
preventDestroy | boolean | Prevent accidental destruction. |
ignoreChanges | string[] | List of attributes to ignore changes for. |
replaceTriggeredBy | any[] | Replace resource when these change. |