fix: Add s3 principal to iam policy attached to sqs in lambda-promtail terraform code (#14619)

pull/14634/head
mwimpelberg28 1 year ago committed by GitHub
parent f411a0795a
commit db0889e274
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      tools/lambda-promtail/sqs.tf

@ -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"

Loading…
Cancel
Save