github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/cloudfront/enforce_https.tf.go (about) 1 package cloudfront 2 3 var terraformEnforceHttpsGoodExamples = []string{ 4 ` 5 resource "aws_cloudfront_distribution" "good_example" { 6 default_cache_behavior { 7 viewer_protocol_policy = "redirect-to-https" 8 } 9 } 10 `, 11 } 12 13 var terraformEnforceHttpsBadExamples = []string{ 14 ` 15 resource "aws_cloudfront_distribution" "bad_example" { 16 default_cache_behavior { 17 viewer_protocol_policy = "allow-all" 18 } 19 } 20 `, 21 } 22 23 var terraformEnforceHttpsLinks = []string{ 24 `https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution#viewer_protocol_policy`, 25 } 26 27 var terraformEnforceHttpsRemediationMarkdown = ``