From 75ee981f825a0c82c52e65a4e8f67ea29a9cc14c Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 1 Apr 2020 14:49:16 +0200 Subject: [PATCH] update sqs policy --- terraform/s3.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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": {