Skip to main content

terraform

Supported Platform

  • terraform

Maturity

experimental

Description

Terraform Configuration Files

Fields

IDTYPEDESCRIPTION
files[]terraform.fileAccess to individual files including .tf and .tf.json files
tfvarsdictReturns the attributes defined in .tfvars and .tfvars.json
modules[]terraform.moduleList all referenced terraform modules
blocks[]terraform.blockRaw HCL blocks
providers[]terraform.blockProvider blocks
datasources[]terraform.blockData sources blocks
resources[]terraform.blockAll blocks with 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 }