
Terraform Search Import
hashicorp/agent-skillsOfficial
Discovers existing cloud resources via Terraform Search queries and bulk imports them into state.
- CCM score
- 73 of 100
- skills.sh installs
- 5.2K
- GitHub stars
- 941
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers the discovery-to-import workflow:
.tfquery.hcllist blocks,terraform query, generated config, then plan and apply - Includes a helper script,
scripts/list_resources.sh, that lists supported list resources for each provider - Supports filtered, multi-region, and parameterized queries, with generated configuration written via
-generate-config-out - Requires Terraform 1.14 or newer and providers with list resource support; falls back to manual discovery otherwise
Install
$ npx -y skills add hashicorp/agent-skills --skill terraform-search-import -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Terraform Search and Bulk Import
Discover existing cloud resources using declarative queries and generate configuration for bulk import into Terraform state.
References:
When to Use
- Bringing unmanaged resources under Terraform control
- Auditing existing cloud infrastructure
- Migrating from manual provisioning to IaC
- Discovering resources across multiple regions/accounts
IMPORTANT: Check Provider Support First
BEFORE starting, you MUST verify the target resource type is supported:
# Check what list resources are available
./scripts/list_resources.sh aws # Specific provider
./scripts/list_resources.sh # All configured providers
Decision Tree
Details
- Repository
- github.com/hashicorp/agent-skills
- Category
- DevOps & Cloud
- First seen
- Apr 16, 2026
More from hashicorp/agent-skills
All 16- Provider Resources4.3K
- New Terraform Provider4.1K
- Provider Actions4.1K
- Run Acceptance Tests3.9K
- Azure Verified Modules3.5K
- Provider Test Patterns3.5K
- Provider Docs3.4K
- Aws Ami Builder3.4K
- Push To Registry3.2K
- Azure Image Builder2.9K
- Windows Builder2.9K
- Terraform Style Guide13.8K
- Terraform Test9.5K
- Refactor Module6.9K
- Terraform Stacks5.9K
Similar to Terraform Search Import
More DevOps & Cloud
import-infrastructure-as-codeSkillgithub/awesome-copilot6.9K installsReverse-engineer live Azure resources into AVM-based Terraform with dependency mapping and exact import addresses.
terraformPluginhashicorp/agent-skills939 starsTerraform skills for configuration, modules, providers, tests, imports, stacks, and policy.
terraform-infrastructureSkillaj-geddes/useful-ai-prompts1.2K installsTerraform skill that provisions AWS, Azure, GCP, and on-premise resources through remote state and modular code.
pulumi-terraform-to-pulumiSkillpulumi/agent-skills993 installsMigrates Terraform or OpenTofu projects to Pulumi by translating HCL and importing tfstate into a stack.
terraform-stacksSkillhashicorp/agent-skills5.9K installsComprehensive guide for authoring HashiCorp Terraform Stacks configuration files, components, and deployments.
terraform-infrastructure-as-codeSkillmanutej/luxor-claude-marketplace457 installsComprehensive Terraform guide covering resources, modules, state, workspaces, providers, and CI/CD for cloud-agnostic deployment.