Importing Terraform Resources the Safe Way
summary
A practical procedure for importing Terraform-managed EC2 and Security Group resources into Terraform Cloud that avoids accidental destruction: prepare Terraform code and import commands first, set the workspace to manual apply and switch to CLI-driven (disable VCS webhook), run terraform init then terraform import locally for each resource, run a plan to minimize diffs (change console settings if needed), merge the PR, re-enable VCS so the remote plan matches the local state, confirm the run and verify tags in the AWS console; this workflow prevents the kind of outage that left a site showing an nginx welcome page.
AI-written summary · about
chapters (5)
related talks
21mTerraform Search: Discover and import resource in bulk
44mHacking Terraform - Engineer your Migration to IaC
29mTerraform Practices - The Good, the Bad, and the Ugly
10mInfrastructure as a Code Best Practices with Terraform
30mTerraform in Depth QA and Fireside Chat
15mTerraform Practices: The Good, the Bad, and the Ugly
24mTerraform Best Practices
01h 25mWorkshop: Infra-as-Code & Terraform
