1 Answer
- Newest
- Most votes
- Most comments
1
You can enable Amazon CloudWatch Logs to trace API calls. Once enabled, API Gateway will log API calls in CloudWatch. The API gateway access log will have the information of the IP address "ip": "$context.identity.sourceIp":
https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html
Or check the value of "X-Forwarded-For" if you want to build a function in API Gateway by using Lambda Proxy integration:
https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html
Relevant content
- asked 6 months ago
- asked 4 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 days ago
- AWS OFFICIALUpdated 2 years ago