diff --git a/terraform/s3.tf b/terraform/s3.tf index f52d3de..9a41b70 100644 --- a/terraform/s3.tf +++ b/terraform/s3.tf @@ -13,7 +13,6 @@ resource "aws_s3_bucket_notification" "roxprox-notification" { } } - resource "aws_sqs_queue" "roxprox-notifications" { name = "${var.s3_bucket}-notifications" receive_wait_time_seconds = 20 @@ -26,7 +25,9 @@ resource "aws_sqs_queue" "roxprox-notifications" { "Statement": [ { "Effect": "Allow", - "Principal": "*", + "Principal": { + "Service": "s3.amazonaws.com" + }, "Action": "sqs:SendMessage", "Resource": "arn:aws:sqs:*:*:${var.s3_bucket}-notifications", "Condition": {