Interview Prep/Terraform/Testing and Policy as Code

How do you verify the deployed result, not only the plan?

IntermediateProductionTesting and Policy as Code
Answer

Post-apply checks: a check block with an HTTP data source, InSpec or Terratest assertions, cloud-native checks (AWS Config conformance packs) and synthetic monitoring. Plan-time assertions prove intent; post-apply checks prove the service actually works.

All Terraform questions Roadmap: Terraform in production

More on Testing and Policy as Code