aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

(aws-lambda-event-sources) there is no ALB as Event Source

Open mkaracullu opened this issue 5 years ago • 3 comments

Even if I can add ALB as trigger to any lambda function, I couldn't find ALB on aws-lambda-event-sources.

There is a workaround posted in stackoweflow however, I don't see ALB attached as trigger to my Lambda Function.

Is there any way to add ALB as trigger to Lambda Function with CDK?

Thanks.

mkaracullu avatar Mar 04 '21 13:03 mkaracullu

ALB is able to trigger Lambda directly without the need for Event Source Mapping which is why it is not supported here or in CloudFormation. The posted link is not a workaround, the supported way is to use ALB targets, see “Using Lambda as Target” section from here https://docs.aws.amazon.com/cdk/api/latest/docs/aws-elasticloadbalancingv2-readme.html

msimpsonnz avatar Apr 14 '21 15:04 msimpsonnz

Closing this issue thanks to @msimpsonnz response.

nija-at avatar Jul 28 '21 17:07 nija-at

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Jul 28 '21 17:07 github-actions[bot]