Skip to content

Commit

Permalink
fix bucket name in cloudtrail
Browse files Browse the repository at this point in the history
  • Loading branch information
SollyzDev committed Apr 3, 2024
1 parent bc023bc commit 020ff4c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cloudwatch-subscriber-axiom-cloudformation-stack.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ Resources:
IncludeGlobalServiceEvents: true
IsMultiRegionTrail: true
IsLogging: true
S3BucketName: !Join ["-", [!Ref AWS::StackName, "axiom", "cloudtrail"]]
S3BucketName: !Ref AxiomCloudWatchLogsSubscriberS3Bucket
TrailName:
!Join ["-", [!Ref AWS::StackName, "axiom", { "Ref": "AWS::AccountId" }]]
!Join ["-", [!Ref AWS::StackName, { "Ref": "AWS::AccountId" }]]
AxiomLogsSubscriberEventRule:
DependsOn: AxiomCloudWatchLogsSubscriber
Type: AWS::Events::Rule
Expand All @@ -88,10 +88,10 @@ Resources:
eventName: ["CreateLogGroup"]
Name:
"Fn::Join":
["-", [{ "Ref": "AWS::StackName" }, "axiom-auto-subscription-rule"]]
["-", [{ "Ref": "AWS::StackName" }, "auto-subscription-rule"]]
Targets:
- Id:
!Join ["-", [!Ref "AWS::StackName", "axiom-auto-subscription-rule"]]
!Join ["-", [!Ref "AWS::StackName", "auto-subscription-rule"]]
Arn: !GetAtt ["AxiomCloudWatchLogsSubscriber", "Arn"]
AxiomCloudWatchLogsSubscriberPolicy:
Type: AWS::IAM::Policy
Expand All @@ -106,7 +106,7 @@ Resources:
- lambda:RemovePermission
Effect: Allow
Resource: "*"
PolicyName: axiom-cloudwatch-logs-subscriber-lambda-policy
PolicyName: cloudwatch-subscriber-axiom-policy
Roles:
- !Ref "AxiomCloudWatchLogsSubscriberRole"
AxiomCloudWatchLogsSubscriberRole:
Expand Down

0 comments on commit 020ff4c

Please sign in to comment.