Skip to content

Commit

Permalink
fix: bucket notification not having permission to send messages to queue
Browse files Browse the repository at this point in the history
  • Loading branch information
kfc-manager committed Mar 21, 2024
1 parent 4c86347 commit 86d9d1f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ data "aws_iam_policy_document" "fanout" {
statement {
effect = "Allow"

# this can not be sns.amazonaws.com specific
principals {
type = "Service"
identifiers = ["sns.amazonaws.com"]
type = "*"
identifiers = ["*"]
}

actions = ["sqs:SendMessage"]
Expand Down Expand Up @@ -109,9 +110,10 @@ data "aws_iam_policy_document" "queue" {
statement {
effect = "Allow"

# this can not be sqs.amazonaws.com specific
principals {
type = "Service"
identifiers = ["sqs.amazonaws.com"]
type = "*"
identifiers = ["*"]
}

actions = ["sqs:SendMessage"]
Expand Down

0 comments on commit 86d9d1f

Please sign in to comment.