Recently I had to unwrap some hairy old Terraform code which was difficult to reason with and extremely…