#terraform#import#cloud#infrastructure-as-code#migration

Terraform Search and Import

Independent PiSkill directory guide. The original skill remains hosted by HashiCorp Agent Skills.

What is Terraform Search and Import?

Discovers existing cloud resources with Terraform Search and brings unmanaged infrastructure under Terraform using bulk import and generated configuration workflows.

What does Terraform Search and Import do?

Terraform Search and Import is a HashiCorp Agent Skill for discovering existing cloud resources and bringing unmanaged infrastructure under Terraform control. It uses Terraform Search and bulk-import workflows to find supported resources, generate configuration and import them into state in a more systematic way.

Who is Terraform Search and Import best for?

  • Teams adopting Terraform in an existing cloud account
  • Projects migrating manually created infrastructure to IaC
  • Infrastructure audits looking for unmanaged resources
  • Engineers planning bulk imports across accounts or regions

Common use cases

  • Discover existing resources with Terraform Search
  • Generate configuration for supported unmanaged resources
  • Bulk import resources into Terraform state
  • Audit what infrastructure is still outside IaC management

How does Terraform Search and Import work?

The skill first checks whether the provider and resource type support Terraform Search, then creates declarative queries to discover infrastructure. It reviews the discovered resources, generates or refines configuration and performs bulk import while keeping the resulting state and code aligned.

Key benefits

  • Reduces manual one-resource-at-a-time import work
  • Helps identify unmanaged infrastructure
  • Connects discovery, configuration generation and state import
  • Useful for brownfield IaC adoption

Things to know

  • The workflow requires compatible Terraform and provider support
  • Generated configuration usually needs cleanup and architectural review
  • Importing state does not automatically produce an ideal module structure

Compatible tools

Claude CodeOpenAI CodexCursorGitHub Copilot

Frequently asked questions

What is Terraform Search and bulk import?
It is a workflow for discovering supported existing cloud resources, generating configuration and importing them into Terraform state at larger scale.
Can every cloud resource be imported this way?
No. The skill first checks provider support because Terraform Search and list-resource support are prerequisites for the streamlined workflow.
← Back to Skills Directory