What problem does it solve? Bringing unmanaged cloud infrastructure under Terraform control traditionally requires manually identifying every resource and writing import blocks by hand. This Skill automates discovery of existing resources using Terraform Search queries and generates the configuration needed for bulk import. ## Core Features & Use Cases - Declarative Resource Discovery: Write .tfquery.hcl files with list blocks to find resources by tags, type, region, or other provider-specific filters. - Bulk Configuration Generation: Run terraform query -generate-config-out to automatically produce resource and identity-based import blocks for all discovered resources. - Provider Support Detection: Use the included list_resources.sh script to verify which resource types your provider version supports before starting. - Manual Import Fallback: A reference guide covers CLI-based discovery and config-driven import for resource types not yet supported by Terraform Search. - Use Case: Your team has dozens of EC2 instances created manually across three regions. Write a multi-region query filtered by owner tag, generate the configuration, clean up computed attributes, and import everything into state in one workflow. ## Quick Start Ask the AI to discover all running EC2 instances tagged with your team name across your AWS regions and generate the Terraform configuration to import them into state.