fix(terraform): do not check the network policy if enable_autopilot is true #4961
Labels
kind/bug
Categorizes issue or PR as related to a bug.
scan/misconfiguration
Issues relating to misconfiguration scanning
Milestone
Source: https://github.com/aquasecurity/tfsec/issues/2027
If the
enable_autopilot
argument is set to true in thegoogle_container_cluster
resource, then we should not checknetwork_policy
, because in autopilot mode, Google manages the security of the cluster itself. And also thenetwork_policy
argument has a conflict withenable_autopilot
.The text was updated successfully, but these errors were encountered: