github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/google/gke/use_service_account.tf.go (about) 1 package gke 2 3 var terraformUseServiceAccountGoodExamples = []string{ 4 ` 5 resource "google_container_cluster" "good_example" { 6 node_config { 7 service_account = "cool-service-account@example.com" 8 } 9 } 10 `, 11 } 12 13 var terraformUseServiceAccountBadExamples = []string{ 14 ` 15 resource "google_container_cluster" "bad_example" { 16 node_config { 17 } 18 } 19 `, 20 } 21 22 var terraformUseServiceAccountLinks = []string{ 23 `https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster#service_account`, 24 } 25 26 var terraformUseServiceAccountRemediationMarkdown = ``