terraform import patterns for adopting equinix.dev when you already have Fabric Cloud Routers, Connections, Network Edge devices, or Metal projects deployed via the portal or hand-written Terraform.
Use this file to discover all available pages before exploring further.
If you’ve already deployed Equinix resources — through the portal, the API, or hand-written Terraform — equinix.dev can adopt them via standard terraform import. This page walks through the canonical patterns.
The import only attaches state — it doesn’t fill in the HCL. Run terraform plan after; differences will show what’s missing in your .tf files.The resource shape:
Note: device imports come with the SSH key references. If those aren’t in your Terraform state, the next plan will try to drop and re-add them. Pin SSH keys via lifecycle { ignore_changes = [ssh_key] } if you don’t want to manage them in Terraform.
The first terraform plan after import will likely show “diffs” that aren’t really drift — they’re shape mismatches between portal-emitted JSON and our HCL. Walk each one:
If the HCL is right and the server has stale data → run a terraform apply to reconcile.
If the server is right and the HCL is wrong → fix the HCL.
If the diff is one of the known gotchas → add the lifecycle { ignore_changes = [...] } block.
After the dust settles, you’ll have an empty plan and clean state.