Hi , I have created three cloduwatch event rules and want to assign to one lambda function as target. Can anyone help me with the code how to do it in terraform.
For further actions, you may consider blocking this person and/or reporting abuse
Hi , I have created three cloduwatch event rules and want to assign to one lambda function as target. Can anyone help me with the code how to do it in terraform.
For further actions, you may consider blocking this person and/or reporting abuse
Arbythecoder -
Anthony Wat -
Elanza-48 -
Daniel Aniszkiewicz -
Top comments (1)
The basic setup of linking an event to a lambda (1 or more) is like this:
The cloudwatch event rule
For each lambda you will have to set the two resources below (aws_cloudwatch_event_target and aws_lambda_permission):
Permission to allow cloudwatch event to execute the Lambda:
That's it