Skip to content

Commit

Permalink
update sqs policy
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas committed Apr 1, 2020
1 parent 07ba422 commit 75ee981
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions terraform/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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": {
Expand Down

0 comments on commit 75ee981

Please sign in to comment.