AWS API Gateway + Lambda: 500 Internal server error or Invalid permissions on Lambda function
I have an .NET Core Web API hosted on the AWS Lambda. I put the AWS Gateway in front.
I am getting the “500 Internal Server Error” when accessing the Web API’s swagger url. We already checked the API/Lambda invoke permission. If you are not sure, you can check this link
The solution is that you need to redeploy your API gateway.
If you are using Terraform to deploy the AWS AG, you need to this code.
If it’s the permission, you can confirm by looking at this message “
Invalid permissions on Lambda function” in the CloudWatch log.