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.

Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen