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.

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions