How to import state with Terraform

Опубликовано: 31 Март 2025
на канале: Zariga Tongy
292
2

How to import state using terraform. The terraformer is the google project which can have your state ready

terraformer import aws --resources=vpc,subnet --connect=true --regions=eu-west-1 --profile=prod
terraformer import aws --resources=vpc,subnet --filter=vpc=vpc_id1:vpc_id2:vpc_id3 --regions=eu-west-1

Terraformer is a CLI tool that generates tf/json and tfstate files based on existing infrastructure (reverse Terraform).