github twitter linkedin
Script to Determine Latency to AWS Regions
Sep 11, 2018
One minute read

I wrote this script awhile ago to help determine which AWS region would be best suited for me. It’s super simple. All it does is ping the EC2 endpoint in each region and display the latency to that region.

Example output:

$ ./ping-aws.sh 
us-east-1:	56.864
us-east-2:	64.035
us-gov-west-1:	51.425
us-west-1:	36.767
us-west-2:	42.451
ap-northeast-1:	215.263
ap-northeast-2:	215.278
ap-south-1:	275.668
ap-southeast-1:	265.577
ap-southeast-2:	240.634
ca-central-1:	62.655
cn-north-1:	228.732
cn-northwest-1:	227.632
eu-central-1:	137.412
eu-west-1:	175.295
eu-west-2:	186.679
eu-west-3:	185.211
sa-east-1:	195.759

Tags: aws

Back to posts