aws / aws-cdk

The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code
https://aws.amazon.com/cdk
Apache License 2.0
11.37k stars 3.77k forks source link

aws_lambda_event_sources: Amazon MQ (ActiveMQ / RabbitMQ) trigger support #25175

Open alexeyshockov opened 1 year ago

alexeyshockov commented 1 year ago

Describe the feature

AWS Lambda supports Amazon MQ as a trigger (both ActiveMQ and RabbitMQ) for some time already, but it is not supported by CDK.

There is already an issue #23764, which was IMO closed by mistake, as Lambda support this trigger for some time already.

Use Case

To eliminate the inconsistency and being able to use AWS managed RabbitMQ as a Lambda trigger

Proposed Solution

No response

Other Information

No response

Acknowledgements

CDK version used

2.74.0

Environment details (OS name and version, etc.)

MacOS

khushail commented 1 year ago

Thanks @alexeyshockov for this feature request. In CDK, there are some services supported but MQ support is still missing. I am marking this as P2 which would mean our core team won't be able to work on it immediately.

Looking at the implementation, creating a class that implements lambda.IEventSource and addEventSourceMapping for the lambda function in bind() method might be the best approach.

However if you would like to contribute, here is the contributing guide. We also welcome Community PRs.

nefnohack commented 6 months ago

Is there any new information about the support for this feature?

EggOfFitch commented 4 months ago

@khushail Are there any updates? Since this feature (AWS Lambda -> MQ Event) is available now for a while.

realexcel2021 commented 3 months ago

Hi are there any updates on this?

colifran commented 3 months ago

Hi all. The first step for this would be to create an L2 construct for AmazonMQ. From there, creating a Lambda event source for AmazonMQ should be relatively straightforward. I can't commit to a timeline right now, but it is on our radar. I hope to have more updates for this soon.

cuongdev commented 2 weeks ago

Hi are there any updates on this?