terraform-search-import

Generate Terraform import configurations from cloud resource searches.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/benonions/dotfiles --skill terraform-search-import
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-search-import
Source: https://github.com/benonions/dotfiles/tree/main/codex/.codex/skills/community/hashicorp-agent-skills/terraform/code-generation/skills/terraform-search-import
Command: npx skills add https://github.com/benonions/dotfiles --skill terraform-search-import

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of discovering existing cloud resources and generating Terraform configuration to manage them, simplifying the migration of unmanaged infrastructure to Infrastructure as Code.

Core Features & Use Cases

  • Resource Discovery: Uses Terraform Search queries to find resources across your cloud environment.
  • Bulk Import Generation: Automatically creates Terraform resource and import blocks for discovered resources.
  • Use Case: You have several EC2 instances and S3 buckets that were provisioned manually. Use this Skill to find them and generate the necessary Terraform code to manage them, ensuring consistency and enabling version control.

Quick Start

Use the terraform-search-import skill to discover all aws_instance resources in the us-west-2 region and generate an import configuration file.

Frequently Asked Questions about terraform-search-import

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I import existing cloud resources into Terraform?

You can import existing cloud resources into Terraform by using Terraform Search queries to discover them and automatically generating resource and import blocks for bulk import configuration.

What's the best way to bring unmanaged infrastructure under Terraform control?

Bringing unmanaged infrastructure under Terraform control is best achieved by running Terraform Search queries to discover manually provisioned cloud assets and generating configuration files to manage them.

Can I generate Terraform import blocks for multiple resources at once?

Yes, you can generate Terraform import blocks for multiple resources at once by leveraging Terraform Search queries to find bulk resources and automatically creating their corresponding configuration.

Do I need a specific Terraform version to use Terraform Search for resource discovery?

Yes, you need Terraform version 1.14 or higher to use Terraform Search for resource discovery, and your providers must support list resource functionality.

What are the limitations of using Terraform Search to discover cloud resources?

The limitations of using Terraform Search to discover cloud resources include requiring Terraform version 1.14 or higher and relying on providers that have list resource support.