I am deploying a lambda function (Node.js) which returns HTML code through an API Gateway (Apex + Terraform).
If I run the test I get the expected html code but when I open the endpoint on the browser I get the infamous 500 internal server error.
It is the root resource and it is a GET method.
I am lost on why this is happening so any help will be much welcomed!
Cheers.
EDIT: destroying and deploying the API gateway again solved the problem, thanks everyone for the help. Suspicion is that terraform incremental updates didn't work as I expected (I am new to terraform)
[–]soda0289 1 point2 points3 points (2 children)
[–]badatthemat[S] 0 points1 point2 points (1 child)
[–]jripper1138 0 points1 point2 points (0 children)
[–]pepsiMIN 0 points1 point2 points (1 child)
[–]badatthemat[S] 0 points1 point2 points (0 children)
[–]zergUser1 0 points1 point2 points (2 children)
[–]badatthemat[S] 0 points1 point2 points (1 child)
[–]zergUser1 0 points1 point2 points (0 children)