Twenty-four small configurations run on Terraform 1.16.5 and OpenTofu 1.13.1: which features exist on only one side, which both accept and do differently, whether state moves between them, and what a module author has to do to support both.
Read more →Tag: OpenTofu
One Contract, Two Clouds: A Network Baseline on AWS and Azure with Terraform
Do not write one Terraform module that hides the cloud. Share the contract instead: the same inputs, outputs, naming and contract tests over an AWS implementation and an Azure implementation, tested on Terraform and OpenTofu with mocked providers, with the cost of the switch-module design measured.
Read more →Testing Infrastructure Code: terraform test, Mock Providers and a Policy Gate in CI
A Terraform module for a clinical-document bucket tested three ways in CI with no cloud account: fourteen unit tests on a mocked provider that pass on Terraform 1.16 and OpenTofu 1.12, ten deliberate defects that the tests must catch, and a policy gate over the JSON plan.
Read more →