Skip to main content

IaC

Browse all articles, tutorials, and guides about IaC

6posts

Guides

Posts

Terraform
|19 min read

Terraform Drift Detection, Measured: What a Scheduled Plan and a Cloud Inventory Each Miss

We made 12 kinds of drift on a real DigitalOcean stack, the way people make them: a console edit, a DNS hotfix, a deleted tag, resources created by hand. A scheduled refresh-only plan caught 7, a cloud inventory diff caught 6, and together they caught 10. One change got past both for good, and one for about ten minutes. Here is what each method misses, how long detection takes, what import blocks do with the leftovers, and a drift budget to finish with.

Terraform
|11 min read

Terraform 1.17's -minimal-refresh: 202 API Calls Down to Zero, and the Drift Goes Quiet Too

Terraform 1.17 can skip the refresh for every resource you did not change. We measured it on 202 real DigitalOcean resources: API calls went from 202 to 0 and plan time halved, and then we broke three records behind its back to see what it stops noticing.

Terraform
|13 min read

Build a Terraform Provider for Your API with the Plugin Framework

If your product has a REST API, a Terraform provider lets people manage it as code. Here is how to build one with the modern Terraform Plugin Framework, using a real email API as the example, from client to registry.

Terraform
|13 min read

Terraform Infrastructure as Code Best Practices

Practical Terraform best practices for 2026: repository layout, remote state with native S3 locking, version pins and the lock file, data sources instead of hardcoded IDs, secrets kept out of state, terraform test, and a CI pipeline that applies the plan you reviewed.