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.

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ