Skip to content

Commit

Permalink
adding s3 principal to iam policy attached to sqs
Browse files Browse the repository at this point in the history
  • Loading branch information
mwimpelberg28 committed Oct 25, 2024
1 parent 5034d34 commit c6a2cd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/lambda-promtail/sqs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ data "aws_iam_policy_document" "queue_policy" {
"sqs:SendMessage"
]
resources = ["arn:aws:sqs:*:*:${var.sqs_queue_name_prefix}-main-queue"]
principals {
type = "Service"
identifiers = ["s3.amazonaws.com"]
}
condition {
test = "ArnEquals"
variable = "aws:SourceArn"
Expand Down

0 comments on commit c6a2cd1

Please sign in to comment.