Infrastructure as code scanning automatically checks infrastructure definitions against security policies before deployment. A CI/CD pipeline can fail a build when a change creates an unsafe network route. section 11.7.1
Catch a risky route
Suppose a Terraform change connects a vendor subnet to a protected point-of-sale subnet. An IaC scanner such as Checkov or tfsec can flag the route, and the pipeline can block the build. Teams can also write automated tests for policies and simulate an attacker to check that guardrails work before deployment. section 11.7.1
