closest-aws-bucket
v1.0.0
Published
Find the closest AWS bucket to a given lat/long
Downloads
6
Maintainers
Readme
closest-aws-bucket
Closest AWS Bucket Region Cloudfront Function
This function is used to find the closest AWS bucket region to the user. It is used in conjunction with Cloudfront to serve the content from the closest region to the user.
Usage (to use all regions):
closestS3Region(37.7749, -122.4194))To provide regions available:
closestS3Region(37.7749, -122.4194, ['ap-southeast-2', 'us-west-1]);