Setup & Installation
What This Skill Does
Discovers existing cloud resources using declarative Terraform Search queries and bulk imports them into Terraform state. Requires Terraform 1.14+ and providers with list resource support. Covers the full workflow from query to generated config to applied import.
Running `terraform query` with a list block discovers and generates all import blocks automatically, replacing hours of manually writing individual import statements or scripting AWS CLI calls to reconstruct resource definitions.
When to use it
- Importing dozens of EC2 instances into Terraform state without writing each import block by hand
- Auditing which S3 buckets or RDS instances exist in an AWS account but are not yet tracked by any Terraform config
- Migrating manually provisioned infrastructure to IaC after a team switches to Terraform
- Filtering resources by tag across multiple AWS regions and generating config for all of them in one pass
- Scoping down what a specific team owns by querying resources filtered by an Owner tag