github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/sqs/no_wildcards_in_policy_documents.tf.go (about) 1 package sqs 2 3 var terraformNoWildcardsInPolicyDocumentsGoodExamples = []string{ 4 ` 5 resource "aws_sqs_queue_policy" "good_example" { 6 queue_url = aws_sqs_queue.q.id 7 8 policy = <<POLICY 9 { 10 "Statement": [ 11 { 12 "Effect": "Allow", 13 "Principal": "*", 14 "Action": "sqs:SendMessage" 15 } 16 ] 17 } 18 POLICY 19 } 20 `, 21 } 22 23 var terraformNoWildcardsInPolicyDocumentsBadExamples = []string{ 24 ` 25 resource "aws_sqs_queue_policy" "bad_example" { 26 queue_url = aws_sqs_queue.q.id 27 28 policy = <<POLICY 29 { 30 "Statement": [ 31 { 32 "Effect": "Allow", 33 "Principal": "*", 34 "Action": "*" 35 } 36 ] 37 } 38 POLICY 39 } 40 `, 41 } 42 43 var terraformNoWildcardsInPolicyDocumentsLinks = []string{ 44 `https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue_policy`, 45 } 46 47 var terraformNoWildcardsInPolicyDocumentsRemediationMarkdown = ``