Relative Content

Tag Archive for amazon-web-servicesaws-lambdaaws-event-bridge

Avoid Adding a Resource Policy to Lambda While Creating EventBridge Rule Using CDK

Problem Statement: I want to create n numbers of EventBridge Rules where the target resource is a Lambda using CDK. While creating the Rule, EventBridge automatically creates a resource policy for lambda that look like this: { “Version”: “2012-10-17”, “Id”: “default”, “Statement”: [ { “Sid”: “EventBridge-Rule-1”, “Effect”: “Allow”, “Principal”: { “Service”: “events.amazonaws.com” }, “Action”: “lambda:InvokeFunction”, […]