- Newest
- Most votes
- Most comments
Amazon DocumentDB 8.0 clusters are not yet supported as Lambda event sources.
https://docs.aws.amazon.com/lambda/latest/dg/with-documentdb.html
Based on the current documentation, AWS Lambda event source mapping integration with Amazon DocumentDB change streams is officially supported only on DocumentDB versions 4.0 and 5.0. DocumentDB 8.0 is not currently listed as a supported version for this feature.
Your observation that existing event source mappings created on version 5.0 continue to function after upgrading to 8.0 is interesting and suggests runtime compatibility. However, the CreateEventSourceMapping API enforces version validation at the time of creation, which is why you're encountering the InvalidParameterValueException when attempting to create new mappings directly on an 8.0 cluster.
Regarding your specific questions:
Support status: The documentation explicitly states that Lambda integration is not currently supported on DocumentDB 8.0. The restriction you're experiencing during the CreateEventSourceMapping call is the expected behavior based on current service capabilities.
Workaround: As you've discovered, creating the event source mapping on a 5.0 cluster and then upgrading to 8.0 appears to work, though this is not an officially documented approach. For production workloads, it's generally recommended to use officially supported configurations.
Recommendations: For the most reliable setup, consider remaining on DocumentDB 5.0 if Lambda event source mapping is a critical requirement for your architecture. Alternatively, you could implement a custom solution using change streams with a polling mechanism from your Lambda function, though this would require different architectural considerations.
I cannot provide information about future roadmaps or planned feature releases. For the latest updates on feature availability and to express interest in DocumentDB 8.0 support for Lambda event source mappings, I recommend reaching out through the AWS Support Center at https://console.aws.amazon.com/support/ where you can provide feedback and inquire about feature requests.
Sources
Using AWS Lambda with change streams - Amazon DocumentDB
Relevant content
asked a year ago
- AWS OFFICIALUpdated 10 months ago
