Skip to main content

terraform.block

Supported platform

  • terraform-hcl

Maturity

experimental

Description

Terraform resource block

Fields

IDTYPEDESCRIPTION
typestringBlock type
labels[]stringBlock Labels
nameLabelstringBlock name label
startterraform.filepositionBlock start position
endterraform.filepositionBlock end position
argumentsdictBlock arguments
attributesdictRaw block attributes
blocks[]terraform.blockChild blocks
related[]terraform.blockRelated blocks
snippetstringBlock snippet

Examples

Display all Terraform blocks and their arguments

terraform.blocks { nameLabel arguments }