Tag

#Terraform

Every article tagged Terraform, in one place.

  • 10 articles
  • 10 min of reading
  • 29 Sep, 2026 last updated

Showing 10 articles

Terraform 1 min read

Terraform State: Remote Backends and Locking

The state file is Terraform's memory: which real resources belong to which blocks in your code. For a team, it must be shared, locked during changes and protected, because it can contain secrets. An S3 backend with locking terraform { backend "s3" { bucket = "...

11 Sep, 2026 Author 1.04K 43
Read article
Terraform 1 min read

Writing Reusable Terraform Modules

A module is a folder of Terraform files used as a building block. Good modules capture your organisation's standards (encryption on, tags set, sensible defaults) so every team gets them for free. Module layout modules/static-site/ main.tf # resources variables...

05 Aug, 2026 Author 329 123
Read article
Terraform 1 min read

Managing Multiple Environments in Terraform

Almost every project needs the same infrastructure in several environments, with small differences: smaller instances in dev, more replicas in prod. There are three common approaches. 1. Separate directories (most common) infra/ modules/ app/ # the shared buil...

18 Jul, 2026 Author 246 82
Read article
Terraform 1 min read

Testing Terraform Code with terraform test

Modules are code that many teams depend on, so they deserve tests. Terraform includes a test framework: .tftest.hcl files with runs and assertions. A plan-only test # tests/naming.tftest.hcl variables { environment = "staging" domain = "shop.example.com" } run...

19 Apr, 2026 Author 1.52K 76
Read article