How to Use Terraform Provisioners - When and Why
Quick Answer Provisioners run scripts on local or remote machines during resource creation/destruction. Use them as a last resort — prefer user_data, …
Quick Answer Provisioners run scripts on local or remote machines during resource creation/destruction. Use them as a last resort — prefer user_data, …
Quick Answer Choose your backend based on your cloud provider: S3 + DynamoDB for AWS, Azure Blob Storage for Azure, GCS for GCP, or Terraform Cloud …
Quick Answer resource "aws_instance" "web" { ami = "ami-0c7217cdde317cfec" # Ubuntu 22.04 instance_type = "t3.micro" …
Introduction Encountering the CDKTF Synth Failed - Cannot Find Module error in Terraform can halt your infrastructure deployment. This guide explains …
Quick Answer Separate files by purpose (main.tf, variables.tf, outputs.tf), use modules for reusable components, and split environments with separate …
Quick Answer Data sources let you read information from your cloud provider or other Terraform state without creating resources. Use them to look up …
Quick Answer Every Terraform AWS project needs three services: IAM (who can do what), S3 (store state files), and DynamoDB (lock state for team …
Quick Answer Use import blocks (Terraform 1.5+) or terraform import CLI to bring existing cloud resources under Terraform management without …
Quick Answer Input variables parameterize your config. Output values expose results. Local values compute intermediate values. Define variables in …
Quick Answer Terraform state (terraform.tfstate) tracks the mapping between your config and real infrastructure. Use remote backends (S3, Azure Blob, …
Quick Answer Choose Terraform if you use multiple cloud providers or want provider-agnostic IaC. Choose CloudFormation if you’re 100% AWS and …
Introduction Encountering the Terraform Cloud Run Task Failed error in Terraform can halt your infrastructure deployment. This guide explains why this …
LEARN BY DOING
Interactive, project-based learning — copy, paste, and understand