Category Terraform Practice Lab

TFLAB33-Taint, Replace and Drift Detection

Taint, Replace and Drift Detection 🔧 Terraform Core ⭐ Intermediate taint (deprecated) -replace plan -refresh-only Drift Detection Scenario An EC2 instance is misbehaving and you want to force Terraform to destroy and recreate it on the next apply. You also…

TFLAB30-Workspaces: Managing Multiple Environments

Workspaces: Managing Multiple Environments 🔧 Terraform Core ⭐ Intermediate workspace terraform.workspace State Isolation Scenario You have one Terraform config that you want to use for dev, staging, and prod. Workspaces give you separate state files per environment while sharing the…

TFLAB28-Importing Existing Resources into Terraform

Importing Existing Resources into Terraform 🔧 Terraform Core ⭐ Intermediate import block terraform import -generate-config-out Scenario Your team created S3 buckets via the AWS console before adopting Terraform. Now you want to bring them under Terraform management without deleting and…