github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/sqs/AVD-AWS-0097/Terraform.md (about) 1 2 Keep policy scope to the minimum that is required to be effective 3 4 ```hcl 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 #### Remediation Links 24 - https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue_policy 25