Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtojek/aws-closest-region
Automatically select the closest AWS region and significantly reduce latency 🔥
https://github.com/mtojek/aws-closest-region
Last synced: 3 months ago
JSON representation
Automatically select the closest AWS region and significantly reduce latency 🔥
- Host: GitHub
- URL: https://github.com/mtojek/aws-closest-region
- Owner: mtojek
- License: apache-2.0
- Created: 2018-11-24T22:16:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T19:47:14.000Z (about 6 years ago)
- Last Synced: 2024-10-03T12:16:27.463Z (4 months ago)
- Language: Go
- Homepage:
- Size: 238 KB
- Stars: 48
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aws-closest-region
Automatically select the closest AWS region and significantly reduce latency 🔥[![Build Status](https://travis-ci.org/mtojek/aws-closest-region.svg?branch=master)](https://travis-ci.org/mtojek/aws-closest-region)
Status: **Done**
Find the **closest AWS region** to your customers and **reduce the latency** while accessing the service endpoint. The application can be used in both - **local development** environment and **remote production hosts**.
```aws-closest-region``` can automatically discover new launched regions!
## Live
## Features
* support **100% AWS regions** in all non-gov partitions (incl. China)
* support **100% AWS services** (also brand new ones)
* latency measured using the HTTP protocol (*/ping* service endpoint) instead of the ICMP messages
* **quick integration** with shell scripts (``AWS_DEFAULT_REGION=`aws-closest-region` ``)
* automatically detect next launched endpoints (use AWS SDK models)
* verbose mode to show all latencies## Getting started
~~~
$ go get github.com/mtojek/aws-closest-region
$ aws-closest-region
eu-central-1
~~~You can select also a particular service:
~~~
$ go get github.com/mtojek/aws-closest-region
$ aws-closest-region s3
INFO Service "s3" is available in 15 regions in "aws" partition.
INFO Service "s3" is available in 2 regions in "aws-cn" partition.
INFO Partition "us-gov" will be skipped.
INFO Service is accessible via following endpoints:
INFO ap-south-1: https://s3.ap-south-1.amazonaws.com
INFO eu-central-1: https://s3.eu-central-1.amazonaws.com
INFO us-east-2: https://s3.us-east-2.amazonaws.com
...
~~~Or run in verbose mode:
~~~
$ go get github.com/mtojek/aws-closest-region
$ aws-closest-region --verbose s3
eu-central-1
~~~## Verbose mode