In order to troubleshoot the API Gateway server error, we need to enable logs as follows:
- First, we need to grant the API Gateway access to CloudWatch in order to be able to push API Gateway log events to CloudWatch Logs. Therefore, we need to create a new IAM role from identity and access management.
- Select API Gateway from the list of AWS services, then, on the permissions ...