-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[aws-lambda] Add "Topics" property to EventSourceMappingOptions #10138
Comments
There is currently no higher level construct support for MSK in the CDK - https://github.com/aws/aws-cdk/tree/master/packages/%40aws-cdk/aws-msk It will make sense for this to be added once we have some basic L2 support. |
@nija-at This might be a dumb question, but wouldn't it still make sense to still add the Edit: I just noticed that the cfnspec has been merged, so I can create a PR for this change. |
Yes, you are right. This can absolutely be done. Usually, this is accompanied by an integration class in |
If I created the PR just adding the I did find a PR for a L2 construct for MSK, but it hasn't been reviewed yet (#9908). |
Definitely not. Feel free to post one. |
Lambda recently added support for MSK as an event source (https://aws.amazon.com/about-aws/whats-new/2020/08/aws-lambda-now-supports-amazon-managed-streaming-for-apache-kafka-as-an-event-source/), and there's now a "Topics" property on the CloudFormation resource definition (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics). Closes #10138 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Lambda recently added support for MSK as an event source (https://aws.amazon.com/about-aws/whats-new/2020/08/aws-lambda-now-supports-amazon-managed-streaming-for-apache-kafka-as-an-event-source/), and there's now a "Topics" property on the CloudFormation resource definition (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics).
Use Case
Using Lambda simplifies reading data from Apache Kafka, as other options usually require customers to worry about infrastructure management.
Proposed Solution
Include
topics
as an optional parameter ofEventSourceMappingOptions
interface:It'd then be used as:
Other
In the future, there could even be a
MSKEventSource
in theaws-lambda-event-sources
package, but just adding thetopics
property should allow customers to get started.This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: