From 23437833ea441f5e24b46afa6a5724f85361892d Mon Sep 17 00:00:00 2001 From: Islam Shehata Date: Tue, 13 Feb 2024 18:36:58 +0200 Subject: [PATCH] fix event rule targets --- ...-subscriber-cloudformation-stack.template.yaml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/axiom-cloudwatch-logs-subscriber-cloudformation-stack.template.yaml b/axiom-cloudwatch-logs-subscriber-cloudformation-stack.template.yaml index bac3257..126194c 100644 --- a/axiom-cloudwatch-logs-subscriber-cloudformation-stack.template.yaml +++ b/axiom-cloudwatch-logs-subscriber-cloudformation-stack.template.yaml @@ -103,16 +103,11 @@ Resources: "Fn::Join": ["-", [{ "Ref": "AWS::StackName" }, "axiom-auto-subscription-rule"]] Targets: - - { - Id: - { - !Join [ - "-", - [!Ref "AWS::StackName", "axiom-auto-subscription-rule"], - ], - }, - Arn: { !GetAtt ["AxiomCloudWatchLogsSubscriber", "Arn"] }, - } + - Id: !Join [ + "-", + [!Ref "AWS::StackName", "axiom-auto-subscription-rule"] + ] + Arn: { !GetAtt ["AxiomCloudWatchLogsSubscriber", "Arn"] } AxiomCloudWatchLogsSubscriberPolicy: Type: AWS::IAM::Policy Properties: