Cloudfront+ApiGateway+Lambda for Wordpress Serverless Architecture

0

I have built serverless architecture for wordpress (reference: https://keita.blog/2019/06/27/serverless-wordpress-on-aws-lambda/ ) and created custom runtime for wordpress (reference: https://github.com/stackery/php-lambda-layer ). So I have been using PHP 8.0 version and other dependencies loaded in layer. So when I make a request using Function Url of lambda it shows like below

Function Url of Lambda

So I have noticed that it says body is Empty and return 302 status code too.

And also If I made request from cloudfront domain name like below

Cloudfront Domain

It will show the apigateway url with path required to move like shown below

ApiGateway Url

So it seems that cloudfront domain is redirected to apigateway but apigateway didn't provide proper response or shown as message: Forbidden. Its looking very confusing so can anyone please help me to solve this.

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인