Ensure that access to your Amazon API Gateway REST APIs is managed by an authorizer using keys or tokens. Controlled access to an Amazon API Gateway REST APIs ensures security and protects sensitive data from unauthorized users.
This rule can help you work with the AWS Well-Architected Framework.
excellence
optimisation
Enabling access control through keys or tokens from an authorizer in Amazon API Gateway REST APIs ensures secure and authenticated API usage. It allows fine-grained control over who can access specific resources, implements rate limiting, facilitates auditing, and enables revoking access when needed. This approach enhances API security and authorization, protecting against unauthorized access and potential misuse of API resources.
Audit
To determine if the access to your API Gateway REST APIs is controlled using keys or tokens, perform the following operations:
Remediation / Resolution
To control access to your Amazon API Gateway REST APIs using keys or tokens, perform the following operations:
References
- AWS Documentation
- Amazon API Gateway FAQs
- Controlling and managing access to a REST API in API Gateway
- Use API Gateway Lambda authorizers
- Control access to a REST API using Amazon Cognito user pools as authorizer
- AWS Command Line Interface (CLI) Documentation
- get-rest-apis
- get-resources
- get-method
- create-authorizer
- update-method