Curated developer articles, tutorials, and guides — auto-updated hourly


Terragrunt dependency and mock_outputs dependency block Reads outputs from...


.terraform.lock.hcl - commit it Terraform generates this file on terraform init - it pins...


count - simple but fragile count creates N copies of a resource indexed by...


for - transform a list or map variable "names" { default = ["alice", "bob",...


the problem When you run multiple containers of the same image, each gets a random port....


Nomad workload orchestrator (containers, java, vm, windows, binaries) single binary...


the multi-env problem With plain Terraform, managing multiple environments means...


run-all Runs a Terraform command across all units in the current directory tree,...


what is terraform Terraform is a CLI tool for building and managing infrastructure as...


S3 backend with state locking S3 stores the state file, DynamoDB handles locking -...


for_each over tuples in terraform Terraform does not allow to iterate through a tuple with...


remote_state Defines the backend once in root.hcl - Terragrunt auto-generates the backend...


folder structure Terragrunt projects split config into two layers: a root hcl file with...


data sources Data sources let you read existing infrastructure without managing it -...


lifecycle rules lifecycle controls how Terraform creates, updates, and destroys a...


dynamic blocks dynamic generates repeated nested blocks from a variable - avoids...


consul health checks Consul supports five types of health checks - pick the one that fits...