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.

沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南