Skip to content

Commit db0889e

Browse files
fix: Add s3 principal to iam policy attached to sqs in lambda-promtail terraform code (#14619)
1 parent f411a07 commit db0889e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎tools/lambda-promtail/sqs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ data "aws_iam_policy_document" "queue_policy" {
3232
"sqs:SendMessage"
3333
]
3434
resources = ["arn:aws:sqs:*:*:${var.sqs_queue_name_prefix}-main-queue"]
35+
principals {
36+
type = "Service"
37+
identifiers = ["s3.amazonaws.com"]
38+
}
3539
condition {
3640
test = "ArnEquals"
3741
variable = "aws:SourceArn"

0 commit comments

Comments
 (0)