1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
It looks like there are a few small errors in the format of the object you're returning. There are some additional spaces in some of the keys (might just be an effect of copy and paste), isBase64Encoded
should be boolean, and statusCode
should be an integer.
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html#respond-to-load-balancer
This slightly modified version seems to work:
{
"headers": {
"Cache-Control": "no-store",
"Content-Type": "application/json"
},
"isBase64Encoded": false,
"statusCode": 200,
"statusDescription": "200 OK",
"body": "Lambda S3 Upload"
}
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 3년 전
- AWS 공식업데이트됨 일 년 전
Thanks Ed ! Yes the spaces on statusCode and statusDescription were the culprit .