CmdID

CmdID / Commands

terraform-query

Query remote infrastructure for resources matching criteria in .tfquery.hcl files. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Query infrastructure using .tfquery.hcl files in the current directory

terraform queryIdentify

Query and generate import blocks and resource configuration

terraform query -generate-config-out path/to/generated.tfIdentify

Specify values for input variables defined in the query file

terraform query -var 'name1=value1' -var 'name2=value2'Identify

Specify values for input variables from a file

terraform query -var-file path/to/file.tfvarsIdentify

Output results in JSON format

terraform query -jsonIdentify