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.
More on Testing and Policy as Code
How do you test infrastructure code, and what does the testing pyramid look like?BeginnerWhat does the static-analysis layer catch?BeginnerWhat does tflint do, and how is it configured?BeginnerHow do Checkov and Trivy differ?IntermediateHow does `terraform test` work?BeginnerHow do mock providers work in `terraform test`?Advanced