github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/elasticsearch/enforce_https.tf.go (about) 1 package elasticsearch 2 3 var terraformEnforceHttpsGoodExamples = []string{ 4 ` 5 resource "aws_elasticsearch_domain" "good_example" { 6 domain_name = "domain-foo" 7 8 domain_endpoint_options { 9 enforce_https = true 10 } 11 } 12 `, 13 } 14 15 var terraformEnforceHttpsBadExamples = []string{ 16 ` 17 resource "aws_elasticsearch_domain" "bad_example" { 18 domain_name = "domain-foo" 19 20 domain_endpoint_options { 21 enforce_https = false 22 } 23 } 24 `, 25 } 26 27 var terraformEnforceHttpsLinks = []string{ 28 `https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticsearch_domain#enforce_https`, 29 } 30 31 var terraformEnforceHttpsRemediationMarkdown = ``