From a55fd8ed5a23b8ee2fb0bdc81979280824972390 Mon Sep 17 00:00:00 2001 From: Alan Edwardes Date: Sat, 13 Apr 2024 23:36:20 +0100 Subject: [PATCH] Removes hardcoded S3 bucket. --- tools/lambda-promtail/template-eventbridge.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lambda-promtail/template-eventbridge.yaml b/tools/lambda-promtail/template-eventbridge.yaml index a6c2789d2c3a..4b08ba037b0e 100644 --- a/tools/lambda-promtail/template-eventbridge.yaml +++ b/tools/lambda-promtail/template-eventbridge.yaml @@ -88,7 +88,7 @@ Resources: - Effect: Allow Action: - s3:GetObject - Resource: arn:aws:s3:::thepalbi-lambda-lb-access-logs/* + Resource: !Sub 'arn:aws:s3:::${EventSourceS3Bucket}/*' RoleName: iam_for_lambda LambdaPromtailFunction: Type: AWS::Lambda::Function