Policy as code turns security rules into machine-readable checks that run automatically. In a CI/CD pipeline, an unsafe infrastructure change can fail the build before reaching production. section 11.7.1
Reject an unsafe network route
If a Terraform change connects a vendor subnet to a highly secure Point of Sale subnet, policy checks can fail the build. Teams can also unit-test the policies by simulating an attacker trying to breach a subnet. section 11.7.1




