[Lambda] [DocumentDB] Support Amazon DocumentDB 8.0.x as a Lambda event source
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 196
- Fork
- 5
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Tell us about your request
Add Amazon DocumentDB 8.0.x to the engine versions accepted by Lambda's CreateEventSourceMapping (and UpdateEventSourceMapping) for aws:docdb event sources. Today only DocumentDB 4.0 and 5.0 are accepted.
Which service(s) is this request for?
Lambda/DocumentDB
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
We use DocumentDB change streams as a native trigger for Lambda (event-driven processing of document changes). Our clusters run 8.0.1, and creating the trigger fails at the API:
operation error Lambda: CreateEventSourceMapping,
https response error StatusCode: 400,
InvalidParameterValueException: Engine version 8.0.1 is not supported.
This looks like a create-time version allowlist rather than a functional limitation. If we create the mapping while the cluster is on 5.0.0 and then upgrade the cluster in place to 8.0.1, the existing trigger keeps working — events continue flowing to the function with no changes. So the 8.0 engine is already compatible with the change-stream / event-source-mapping mechanism at runtime; only CreateEventSourceMapping rejects 8.0.x up front.
Impact: we can't run clusters on the current engine version and use the fully managed native trigger at the same time. That blocks us from upgrading, or forces extra infrastructure.
Are you currently working around this issue?
Create the event source mapping on a 5.0.0 cluster, then upgrade the cluster in place to 8.0.1 - the trigger survives the upgrade. Unfortunately you will be unable to add new triggers in future, which is blocker for us.
Additional context
The supported-versions notes in "Process Amazon DocumentDB events with Lambda" (Lambda dev guide) and "Using AWS Lambda with change streams" (DocumentDB dev guide) currently list only 4.0 and 5.0 and don't mention 8.0, so the error is ambiguous with a misconfiguration. Until 8.0 is supported, explicitly calling it out in both docs pages (and ideally the error message) would help. Cluster type is instance-based / regional (not elastic or global), with change streams enabled.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với hành vi của CreateEventSourceMapping và UpdateEventSourceMapping được mô tả trong issue, sau đó xem lại các ghi chú về phiên bản được hỗ trợ trong các trang hướng dẫn về Lambda và DocumentDB được nêu ở đây. Công việc được xem là hoàn tất khi DocumentDB 8.0.x được chấp nhận cho các nguồn sự kiện aws:docdb và cả hai trang tài liệu đều mô tả chính xác các phiên bản được hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- aws
- Lĩnh vực
- cloud, databases
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100