Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing CloudWatch Log group resource policy #1

Open
reidca opened this issue Dec 19, 2024 · 0 comments
Open

Missing CloudWatch Log group resource policy #1

reidca opened this issue Dec 19, 2024 · 0 comments

Comments

@reidca
Copy link

reidca commented Dec 19, 2024

I think the bus template needs a AWS::Logs::ResourcePolicy resource to allow event bridge to write to the CloudWatch log group.

e.g.

  SCPErrorsLogGroupEventBridgePolicy:
    Type: AWS::Logs::ResourcePolicy
    Properties:
      PolicyDocument: !Sub |
        {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Sid": "AllowEventBridgeToWriteSCPErrorLogs",
              "Effect": "Allow",
              "Principal": {
                "Service": "events.amazonaws.com"
              },
              "Action": [
                "logs:CreateLogStream",
                "logs:PutLogEvents"
              ],
              "Resource": "${CloudWatchLogGroup.Arn}"
            }
          ]
        }
      PolicyName: "EventBridgeToSCPErrorsLogGroupPolicy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant