Import existing infrastructure
Scan your connected cloud accounts or upload your existing IaC files, and bring what you already run under emma.
You don't have to start from scratch. emma can scan your connected cloud accounts, discover what's already running, and bring those resources under management — so the copilot and the diagram reflect your real environment, not just what you built through emma.
Before you start you need a connected cloud provider. If you haven't connected one, add it under Settings → Cloud Providers first.
1. Scan an account
Ask the copilot to look for resources it isn't already tracking.
Try this
Scan my AWS account for resources you're not managing yet
emma inventories the account and reports what it found — VMs, volumes, networks, security groups, and more — grouped so you can see the shape of the account.
2. Review what was found
just the resources in eu-central).Scanning is read-only — it inspects your account and builds a picture. It doesn't change anything.
3. Bring them onto the diagram
Once imported, the resources appear in your Inventory and on the diagram alongside anything you built through emma, with the connections between them inferred automatically. From there you can ask about them, optimize them, or export them like any other resource.

Try this
Show me the security exposure of everything you just imported
Import from IaC files
If your infrastructure is already described in code, bring the files instead of scanning an account.
Page navigation — click IaP → Import IaC → Import IaC tab
Drop files in or browse for them — up to 10 at a time, 5 MB each. emma picks the parser from the file extension; there is no format picker:
| Extension | Read as |
|---|---|
.tf, .hcl | Terraform configuration |
.tfstate | Terraform state |
.json | AWS CloudFormation template — JSON only; every .json file is read as CloudFormation |
.yaml, .yml | Kubernetes manifests, several documents per file — render Helm charts with helm template first |
.py | Pulumi program in Python |
Parsing is a preview and saves nothing. For each file you get the resources emma found — name, type,
cloud, and whether emma supports that type. Unsupported resources stay in the list, marked
unsupported, so you can see what won't come across. Values that look like secrets (passwords, tokens,
keys) in Terraform state and CloudFormation, and the values of Kubernetes Secrets, are masked before they
are shown. The Pulumi parser is a heuristic, and says so: check its resource list against your program.
From the preview you can:
- Import as deployment — closes the panel and asks the copilot for a deployment plan that builds the supported resources through emma. The plan is generated from the resource types and names in your files, not their full settings, so check sizes and regions in the plan preview before you confirm it.
- Save as template — keeps the import as an IaP template you can start from later.
emma exports Terraform, YAML, and JSON — Pulumi is import-only.
Codify what's already running
The second tab, Codify from cloud, goes the other way: it turns resources emma already sees into
vendor-native Terraform for AWS, Google Cloud, or Azure — one provider per bundle. Choose which
resources to include, the target provider, and your Terraform version: TF 1.5+ puts import {} blocks
in main.tf; TF <1.5 ships a separate terraform_import.sh and downloads as a .zip. The bundle
also has variables.tf and a README.md. For a single resource, use Codify as Terraform in the
resource's menu in the Inventory. See Export to infrastructure-as-code
for exporting plans.
What's next
- Optimize your cloud spend — find savings in what you imported
- Export to infrastructure-as-code — codify existing resources
- The diagram — explore the imported environment
Last updated on 24 Sept 2026