Taste Testing Tofu
summary
Practical, tool-focused session that shows how testing Terraform/OpenTofu prevents outages, saves review time, and preserves backward compatibility. Key prescriptions: run terraform fmt and Terraform validate in CI, add TFLint and Checkov/Trivy for linting and security, use pre-commit hooks and a cookiecutter module plus GitHub Actions to scaffold tests. Use Terratest (Go) for version-flexible end-to-end tests, native HCL tests with mocks for fast unit-like checks, and nightly teardown or AWS Nuke to avoid leaked resources (RDS can take ~45 minutes). OpenTofu is recommended and used in production.
AI-written summary · about
chapters (11)
- 0:00Introduction to talk
- 1:13What is Terraform and OpenTofu
- 2:37Why test infrastructure code
- 6:09Low-hanging fruit testing tools
- 9:37Automating tests in CI
- 12:03Testing infrastructure resources
- 13:29Challenges of IaC testing
- 15:13TerraTest framework overview
- 16:39Native testing framework
- 18:49Comparing testing frameworks
- 20:16Q&A session begins
related talks
32mNavigating the OpenTofu Landscape: From Basics to Mastery
32mNavigating the OpenTofu Landscape From Basics to Mastery
11mLightning Talk: Staying in Sync: Managing Upgrades in OpenTofu and Terraform Modul...
15mLightning Talk: Seamless at Scale: Migrating from Terraform to OpenTofu Without Mis...
30mOpenTofu Project Overview
10mLightning Talk: 800 Reasons To Love OpenTofu (We Counted Them All)
40mHow I Learned to Stop Worrying about My Infrastructure and Love [Open] Tofu
05mEnabling Product Thinking for Terraform Modules with OpenTelemetry (and OpenTofu)
