CodefaceImporting Existing Infrastructure

Importing Existing Infrastructure

Bring resources you already run in the cloud under Codeface's management with the Import wizard.

Updated November 20262 min read

If you already have cloud resources running outside Terraform — or outside Codeface — the Import wizard discovers them and generates the Terraform needed to bring them under management, without recreating anything.

The Import wizard's Discover step, showing the 11-step progress bar and a Scan accounts button

The import flow

Discover existing resources

Codeface scans your connected cloud account for resources in the current environment.

Select resources

Choose which discovered resources to bring into Codeface. You don't have to import everything at once.

Review dependencies

Codeface shows the relationships between the resources you selected, so you can confirm they'll be imported together correctly.

Generate IaC

Codeface writes Terraform for the selected resources.

Preview and edit

Review the generated code and make any adjustments before anything is imported into state.

Import into the state backend

Codeface imports the resources into your configured Terraform state backend, associating the real cloud resources with the generated code.

Validate against the cloud

Codeface checks that the generated code matches the live resource, so the first plan afterward comes back clean.

Run plan

Confirm there's no unexpected diff between the imported state and the live resource.

Review impact

See exactly what will change, if anything, before committing.

Commit to Git

Publish the generated Terraform to your repository — see Source Control.

Manage via IaC

From this point on, the resource is just like anything else drawn on the canvas — edit it visually, and Codeface keeps the Terraform in sync.

Resources Codeface doesn't recognize

If a discovered resource doesn't match anything in the catalog, Codeface still reports it to you by name and address rather than silently skipping it — so you know exactly what wasn't imported and can decide how to handle it (see Hybrid Infrastructure).

Why this matters

Teams moving from manual, click-through cloud management to infrastructure-as-code don't have to choose between a risky from-scratch rewrite and staying unmanaged forever — Import generates a real, working Terraform baseline from what's already running.

Permissions

Running an import requires the same IaC-editing permission as the canvas (Developer role or above), plus the credentials permission to connect the cloud account being scanned (Operator role or above on a Business account). See Account Types & Roles.

Previous
Terraform Code View
Next
Hybrid Infrastructure