1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
This tutorial should help you out: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-dynamo-db.html
Your current code appears to do most of this already - you just need to refactor to use a Lambda handler function and get the request body from the event object:
exports.handler = async (event, context) => {
...
let requestJSON = JSON.parse(event.body);
...
}
You should then be able to replace the hardcoded values being added to DynamoDB with the data being sent in the request.
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 3년 전
- AWS 공식업데이트됨 4년 전