Debugging and troubleshooting

In order to troubleshoot the API Gateway server error, we need to enable logs as follows:

  1. 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.
Some parts have been skipped to avoid me repeating myself. If you need a step by step procedure, make sure that you've followed on from the previous chapter.
The following screenshot will give you a glimpse of how to create a IAM role:
  1. Select API Gateway from the list of AWS services, then, on the permissions ...

Get Hands-On Serverless Applications with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.