terraform-query
Query remote infrastructure for resources matching criteria in .tfquery.hcl files. tldr-pages
On several platforms
Several platforms
Query infrastructure using .tfquery.hcl files in the current directory
terraform queryIdentifyQuery and generate import blocks and resource configuration
terraform query -generate-config-out path/to/generated.tfIdentifySpecify values for input variables defined in the query file
terraform query -var 'name1=value1' -var 'name2=value2'IdentifySpecify values for input variables from a file
terraform query -var-file path/to/file.tfvarsIdentifyOutput results in JSON format
terraform query -jsonIdentify