I have a Java application running on AWS instances, and which uses the AWS SDK for Java v1.12. I’d like to be able to lookup location information based on an IP address, such as city and state. Does AWS provide this service? If so, is there a basic Java example available somewhere?
Question posted in Amazon Web Sevices
The official Amazon Web Services documentation can be found here.
The official Amazon Web Services documentation can be found here.
2
Answers
No, AWS does not provide this service.
While AWS does not offer it as a standalone service, if you only want to lookup the location of your calling clients, CloudFront CDN does offers extra headers you can use to achieve that.
For your use case you can have a look at:
ref: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-cloudfront-headers.html#cloudfront-headers-viewer-location