Skip to content

Commit

Permalink
Add in example of kubernetes assurance policy
Browse files Browse the repository at this point in the history
  • Loading branch information
rjulian committed Mar 27, 2024
1 parent 45accc5 commit f2d632a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/resources/aquasec_kubernetes_assurance_policy/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
resource "aquasec_kubernetes_assurance_policy" "example_kubernetes_assurance_policy" {
// Values that are required
application_scopes = ["Global"]
name = "example_kubernetes_assurance_policy"

//Values that default to true
audit_on_failure = true
block_failed = true

kubernetes_controls {
avd_id = "AVD-KSV-0121"
description = "HostPath present many security risks and as a security practice it is better to avoid critical host paths mounts."
enabled = true
kind = "workload"
name = "Kubernetes resource with disallowed volumes mounted"
ootb = true
script_id = 104
severity = "high"
}

}

0 comments on commit f2d632a

Please sign in to comment.