Google Cloud

How to Import Google Cloud Resources into Terraform

To import Google Cloud infrastructure into Terraform, scan it with Terraback (terraback scan all gcp --project my-gcp-project) and run terraback gcp import --method bulk. Terraback generates the resource blocks and the Terraform 1.5+ import blocks for every resource it finds. Pick a resource below for a focused guide.

Scan Google Cloud and generate Terraform

terraback scan all gcp --project my-gcp-project
terraback gcp import --method bulk

Google Cloud import guides

Import your whole Google Cloud account in minutes

Terraback supports 80+ Google Cloud resource types and emits clean Terraform plus import blocks, running locally with read-only credentials.