sparse-intern-71089
12/16/2020, 6:55 AMfaint-table-42725
12/16/2020, 7:03 AMabundant-appointment-96790
12/16/2020, 4:29 PMnew aws.cloudwatch.EventTarget
and it will emit a static JSON to the SQS queue.
When I tried to do the same thing for Lambda, passing the Lambda ARN into aws.cloudwatch.EventTarget
, the Lambda triggered is not created (presumably because EventSourceMapping is not created underneath). The only way to hook an EventRule
to a Lambda is to call: EventRule.onEvent
. But that doesn’t let me configure the payload:
https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/cloudwatch/eventRuleMixins.ts#L129
This only lets me connect an EventRule to a Function and the payload will have this schema: https://github.com/pulumi/pulumi-aws/blob/master/sdk/nodejs/cloudwatch/eventRuleMixins.ts#L29