
Answer-first summary for fast verification
Answer: Update CloudFormation with an AWS::Lambda::Permission resource to ensure events.amazonaws.com has permissions to invoke the function.
For EventBridge (former CloudWatch Events) to invoke Lambda, you need lambda:AddPermission to grant events.amazonaws.com (the service principal) invoke permission on the Lambda. This is often done with AWS::Lambda::Permission resource in CFN.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A CloudFormation template provisions an EventBridge rule that invokes a Lambda function. The Lambda function has CloudWatch Logs permissions but is not running. How should this be resolved?
A
Update CloudFormation with an AWS::IAM::Role with permissions for EventBridge to invoke the function; assign to the EventBridge rule.
B
Update CloudFormation with an AWS::IAM::Role; assign as the function execution role.
C
Update CloudFormation with an AWS::Lambda::Permission resource to ensure events.amazonaws.com has permissions to invoke the function.
D
Update CloudFormation with an AWS::Lambda::Permission resource to ensure lambda.amazonaws.com has permissions to invoke the function.
No comments yet.