terraform-search-import
Skill by Cloudgeni-ai
Terraform Search Import discovers existing cloud resources with Terraform list queries and generates configuration to bulk import them into Terraform state. It is for teams bringing unmanaged infrastructure under Terraform control or moving to IaC.
Install terraform-search-import
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Cloudgeni-ai/opengeni /tmp/opengeni && mkdir -p ~/.claude/skills && cp -r /tmp/opengeni/packages/runtime/src/curated_skill_library/terraform-search-import ~/.claude/skills/terraform-search-importRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install terraform-search-import in Claude Code
git clone --depth 1 https://github.com/Cloudgeni-ai/opengeni /tmp/opengeni && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/opengeni/packages/runtime/src/curated_skill_library/terraform-search-import ~/.gemini/antigravity-cli/skills/terraform-search-importAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install terraform-search-import in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides an AI assistant through discovering existing cloud resources with Terraform Search and importing them into Terraform management. It explains how to check that a provider supports list resources for a target type, using a helper script or the provider schema. It then shows how to write .tfquery.hcl files with list blocks, run terraform query, and generate resource and import blocks with -generate-config-out.
The skill covers filtered, multi-region and parameterized queries, identity-based imports, and cleanup of generated configuration. It is aimed at engineers auditing cloud accounts, bringing unmanaged resources under Terraform, or migrating from manual provisioning to IaC. The source states it requires Terraform 1.14 or later.
Written from the project's SKILL.md and checked against it.
What it can do
- Check provider supportRuns a helper script to list the list resources a provider offers before writing queries.
- Write list queriesBuilds .tfquery.hcl files with list blocks that search for existing resources.
- Filtered discoveryNarrows results with filters such as tags, instance type or state.
- Multi-region discoveryRuns the same list query across several regions using for_each.
- Generate configurationCreates resource and import blocks with terraform query -generate-config-out.
- Identity-based importWrites import blocks that identify resources by identity attributes, for Terraform 1.12 and later.
- Configuration cleanupGuides removal of computed attributes and replacement of hardcoded values with variables.
What you need
- Terraform 1.14 or later
- A provider with list resource support for the target resource type
- Cloud provider credentials, such as AWS, for the provider in use
Try asking
- Check whether the AWS provider supports list resources for aws_s3_bucket
- Write a .tfquery.hcl file that finds running EC2 instances tagged Owner=platform
- Generate Terraform import blocks for all EC2 instances in us-west-2 and eu-west-1
Good to know
- Terraform Search requires Terraform 1.14 or later.
- Only resource types with list resource support can use the Terraform Search workflow.
- Below 1.14 or for unsupported types, the skill points to a separate manual discovery workflow.
- Generated configuration includes all attributes and needs manual cleanup before use.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/runtime/src/curated_skill_library/terraform-search-import/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to terraform-search-import
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
terraform-search-import: common questions
What version of Terraform does this skill need?
The source says it requires Terraform 1.14 or later and providers with list resource support. Older Terraform versions use the manual discovery workflow in the references.
How does it know which resources can be discovered?
It runs ./scripts/list_resources.sh or queries the provider schema for list_resource_schemas. The source notes that list support is rapidly expanding and varies by provider version.
Does the generated configuration work as is?
The source says generated configuration includes all attributes, so computed and read-only values should be removed and the code reviewed before running plan and apply.
How do I install terraform-search-import?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is terraform-search-import free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is terraform-search-import safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to terraform-search-import?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
