From 0b3574195c22df2fe4d16cfb89fc04f88fe842f5 Mon Sep 17 00:00:00 2001
From: Tom McLaughlin <tom@serverlessops.io>
Date: Fri, 16 Aug 2024 20:37:17 -0400
Subject: [PATCH] Corect another permission

---
 stacksets/datadog-shipping/logs-template.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stacksets/datadog-shipping/logs-template.yaml b/stacksets/datadog-shipping/logs-template.yaml
index 342b84d..17eaaaa 100644
--- a/stacksets/datadog-shipping/logs-template.yaml
+++ b/stacksets/datadog-shipping/logs-template.yaml
@@ -98,7 +98,7 @@ Resources:
           - Effect: Allow
             Action:
               - logs:PutLogEvents
-            Resource: !Sub "arn:aws:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/kinesisfirehose/${AWS::StackName}:log-stream:*"
+            Resource: !GetAtt DeliveryStreamLogGroup.Arn
           - Effect: Allow
             Action:
               - kinesis:DescribeStream