hashicorp/terraform-search-import
Discover existing cloud resources and bulk import them into Terraform state
Open source
Description
terraform-search-import is an agent skill from HashiCorp that discovers existing cloud resources with declarative Terraform Search queries and bulk imports them into Terraform state. It needs Terraform 1.14 or later and providers that support list resources. The skill covers the full path from query to generated configuration to applied import. The page says that running terraform query with a list block discovers resources and generates the import blocks, which replaces hours of hand-written import statements or scripts that call the AWS CLI to rebuild resource definitions. Example jobs from the page are importing dozens of EC2 instances into state without writing each import block, auditing which S3 buckets or RDS instances exist in an AWS account but are not yet tracked by any Terraform configuration, and migrating manually provisioned infrastructure to infrastructure as code after a team switch. It suits platform teams that have resources created outside Terraform and want to bring them under management. Install it with npx skills add https://github.com/hashicorp/agent-skills --skill terraform-search-import. HashiCorp publishes it in its agent-skills repository on GitHub, and the page labels it official.…
Highlights
- Discovers existing resources with Terraform Search
- Generates import blocks automatically
- Covers query, config and import steps
- Bulk import into state
- Needs Terraform 1.14+ and list resource support
Ratings & Reviews
No ratings yet
Be the first to rate hashicorp/terraform-search-import.
People also visit
hashicorp/terraform-search-import FAQ
What does this skill do?
Discovers existing cloud resources with Terraform Search queries and bulk imports them into Terraform state.
What versions are required?
The page says Terraform 1.14 or later, and providers with list resource support.
How do I install it?
Run npx skills add https://github.com/hashicorp/agent-skills --skill terraform-search-import.
Can it find resources not in any config?
Yes. The page gives auditing S3 buckets or RDS instances that no Terraform config tracks as an example.
Who publishes it?
HashiCorp, in its agent-skills repository on GitHub. The page labels it official.
What are the best hashicorp/terraform-search-import alternatives?
Popular alternatives to hashicorp/terraform-search-import include terraform-search-import, import-infrastructure-as-code and terraform-engineer. See all hashicorp/terraform-search-import alternatives













