coolapso

Automatically import infrastructure to tfstate

17
1
100% credibility
Found May 13, 2026 at 17 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Go
AI Summary

A tool that automatically figures out how to bring existing cloud resources under management in infrastructure blueprints by analyzing a preview plan.

How It Works

1
🔍 Hear about the helper

You learn about this handy tool that makes bringing your existing cloud setup into your management blueprint super easy, without the usual hassle of figuring out tricky codes manually.

2
📥 Pick it up quickly

You grab the tool onto your computer using a simple download or built-in method that matches your setup.

3
✏️ Describe your setup

You write a simple description of your already-running cloud pieces, matching exactly what exists out there.

4
🔮 Preview the match

You check a quick preview to see how your description lines up with reality.

5
🚀 Let it figure out the magic

Run the tool and watch it smartly detect all the details needed to pull your existing pieces into your blueprint, skipping new ones automatically.

6
Choose your way
📄
Make a list

It creates a simple file with all the steps ready for you to follow.

▶️
Do it now

It performs the pulls one by one, pausing if needed to stay smooth.

7
Finish the job

Follow the list or let it complete, and your blueprint now fully knows and manages everything.

🎉 All set and managed

Your existing cloud world is now perfectly tracked in your blueprint, ready for safe changes anytime.

Sign up to see the full architecture

6 more

Sign Up Free

Star Growth

See how this repo grew from 17 to 17 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is tfimport?

tfimport is a Go CLI that automatically imports existing infrastructure into Terraform, OpenTofu, or Terragrunt state files. You write manifests matching your live resources, run it to generate a plan (or use an existing one), and it deduces provider-specific import IDs—like AWS ARNs or Kubernetes namespace/name combos—then outputs an import.tf file or runs the imports directly. It skips new resources gracefully and handles rate limits with configurable delays, solving the drudgery of manual ID hunting.

Why is it gaining traction?

Unlike basic wrappers, it parses plan JSON offline, uses cloud SDKs to resolve tags or prefixes (e.g., VPC by Name), and supports hundreds of resources across AWS, Kubernetes, ArgoCD, Azure, Google, and Scaleway via parsed docs. Developers love the dry-run previews and ignore patterns for noisy resources, making brownfield IaC onboarding fast without deep provider docs dives. It's extensible for custom resolvers too.

Who should use this?

Infrastructure engineers reverse-engineering legacy AWS or Kubernetes setups into Terraform. Teams automatically importing data from existing clusters before gitops rollouts, or ops folks syncing Terragrunt modules to live state without downtime. Ideal for mid-sized projects where manual imports waste days.

Verdict

Worth testing on non-critical stacks—solid CLI UX and multi-provider coverage punch above its 17 stars, but 1.0% credibility reflects early maturity with room for more tests and providers. Install via Go or packages, validate your imports, and contribute resolvers if gaps hit.

(187 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.