Authorize the caller, not just the signature
How IAM authorization controls signed client requests and how integration roles or resource permissions let API Gateway invoke backends. · associate
Set an API Gateway method or route to AWS_IAM when callers should use AWS identities. The client signs its HTTP request using Signature Version 4 and AWS credentials. Temporary credentials also require a session token. A signing-capable SDK or HTTP client can construct the signature; the secret access key is not sent with the request.
The signature identifies the caller and protects the signed request from alteration. It does not grant permission by itself. The caller needs an effective allow for execute-api:Invoke on the requested API resource, with no applicable explicit deny. Permissions to create or edit an API are separate from permission to invoke it.
There is also a second authorization boundary: API Gateway calling the backend. A caller allowed to invoke an API does not automatically give API Gateway permission to invoke a function or send a queue message. Keep these two decisions separate.
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.