Skill 4.1.7

Debug service integration issues in applications

Key Concepts

Common causes include missing IAM permissions (on the execution role or the target's resource policy), KMS key policies that do not allow a service to use the key, timeouts (API Gateway's 29-second integration limit or a Lambda timeout shorter than the work), throttling and quota limits, VPC networking (no route to an AWS endpoint), and payloads in an unexpected format, such as a non-proxy integration response.

X-Ray traces show which integration failed, CloudTrail shows denied API calls with the exact action, and aws sts decode-authorization-message decodes encoded authorization errors. API Gateway execution logs show the request sent to and the response received from the backend.