Skip to main content

terraform

Supported platform

  • terraform-hcl

Maturity

experimental

Description

Terraform configuration files

Fields

IDTYPEDESCRIPTION
files[]terraform.fileAccess to individual files including .tf and .tf.json files
tfvarsdictThe attributes defined in .tfvars and .tfvars.json
modules[]terraform.moduleAll referenced Terraform modules
blocks[]terraform.blockRaw HCL blocks
providers[]terraform.blockProvider blocks
datasources[]terraform.blockData sources blocks
resources[]terraform.blockAll blocks with the type resource
variables[]terraform.blockVariable blocks
outputs[]terraform.blockOutput blocks

Examples

Display all Terraform blocks and their arguments

terraform.blocks { nameLabel arguments }

Display all data blocks

terraform.datasources { nameLabel arguments }

Display all resource blocks

terraform.resources { nameLabel arguments }