Skip to content

Commit

Permalink
Merge pull request #39 from in4it/feature/sqs-policy
Browse files Browse the repository at this point in the history
update sqs policy
  • Loading branch information
Lucas authored Apr 1, 2020
2 parents 07ba422 + 75ee981 commit fdee232
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 fdee232

Please sign in to comment.