title: Configuring logging of AWS API Gateway
body: <p>I created a lambda function to upload files to s3. When testing via the AWS interface, everything works. Next I created the API Gateway and tried to make a request through ReactJs. But I get an error. I want to see what error occurs but I cannot add logs to the API Gateway. What I do.</p>
  
  <ol>
  <li>Create API Gateway -> go to Stages-> Logs/Tracing</li>
  <li><p>Try to activate checkbox Enable CloudWatch Logs but got <code>CloudWatch Logs role ARN must be set in account settings to enable logging</code></p></li>
  <li><p>Create role in IAM with next policy: AmazonS3FullAccess, AmazonAPIGatewayPushToCloudWatchLogs, AWSLambdaBasicExecutionRole</p></li>
  <li><p>Copy the Role ARN</p></li>
  <li>go to the setting of my api and try to paste to CloudWatch log role ARN. But got <code>The role ARN does not have required permissions set to API Gateway</code>.</li>
  </ol>
  
  <p>Can you tell me what other settings I need?</p>