IaC
Browse all articles, tutorials, and guides about IaC
Guides
Introduction to Packer
Learn HashiCorp Packer 1.16: install it, write HCL2 templates, build AWS AMIs and Docker images, use provisioners and variables, and follow best practices.
Introduction to Terraform
Learn Terraform 1.17 step by step: install it, write HCL, manage state, use variables and modules, set up S3 remote state with locking, and test your code.
Posts
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 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.
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 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.