awslabs / aws-solutions-constructs

The AWS Solutions Constructs Library is an open-source extension of the AWS Cloud Development Kit (AWS CDK) that provides multi-service, well-architected patterns for quickly defining solutions
https://docs.aws.amazon.com/solutions/latest/constructs/
Apache License 2.0
1.19k stars 240 forks source link

New Pattern: aws-msk-lambda #52

Open dscpinheiro opened 3 years ago

dscpinheiro commented 3 years ago

Lambda recently added support for MSK (Managed Streaming for Apache Kafka) 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/)

Use Case

With this new integration, customers can build Apache Kafka consumer applications with Lambda functions without needing to worry about infrastructure management.

Other

There's an open issue where the new property for Lambda (Topics - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html#cfn-lambda-eventsourcemapping-topics) is not available in the CDK yet. Here's the GitHub issue I created on their repository: https://github.com/aws/aws-cdk/issues/10138


This is a :rocket: Feature Request

Jacco commented 2 years ago

Am working on this here https://github.com/Jacco/aws-solutions-constructs/tree/aws-mks-lambda

Seems that aws/aws-cdk#10138 is fixed now

I have a few questions about the implementation:

I still need to work on my branch a bit moving some stuff to core.