Skip to content

Instantly share code, notes, and snippets.

@c1982
Last active May 11, 2021 10:41
Show Gist options
  • Save c1982/63ad5f170983af770dba1899719cf77a to your computer and use it in GitHub Desktop.
Save c1982/63ad5f170983af770dba1899719cf77a to your computer and use it in GitHub Desktop.
AWS region names with bill region names
type AwsRegion struct {
Region string
Location string
Code string
A1 string
Latitude string
Longitude string
}
var (
regions = Regions{
{"Asia Pacific", "Hong Kong", "ap-east-1", "APE1", "22.302711", "114.177216"},
{"Asia Pacific", "Tokyo", "ap-northeast-1", "APN1", "35.689487", "139.691711"},
{"Asia Pacific", "Seoul", "ap-northeast-2", "APN2", "37.566536", "126.977966"},
{"Asia Pacific", "Osaka", "ap-northeast-3", "APN3", "34.693737", "135.502167"},
{"Asia Pacific", "Singapore", "ap-southeast-1", "APS1", "1.352083", "103.819839"},
{"Asia Pacific", "Sydney", "ap-southeast-2", "APS2", "-33.868820", "151.209290"},
{"Asia Pacific", "Mumbai", "ap-south-1", "APS3", "19.0760", "72.8777"},
{"Canada", "Montreal", "ca-central-1", "CAN1", "45.5017", "-73.5673"},
{"Africa", "Cape Town", "af-south-1", "CPT", "-33.9249", "18.4241"},
{"Europe", "Stockholm", "eu-north-1", "EUN1", "59.3293", "18.0686"},
{"Europe", "Frankfurt", "eu-central-1", "EUC1", "50.1109", "8.6821"},
{"Europe", "Ireland", "eu-west-1", "EU", "53.1424", "-7.6921"},
{"Europe", "London", "eu-west-2", "EUW2", "51.5074", "0.1278"},
{"Europe", "Paris", "eu-west-3", "EUW3", "48.8566", "2.3522"},
{"Europe", "Milan", "eu-south-1", "EUS1", "45.4642", "9.1900"},
{"Middle East", "Bahrain", "me-south-1", "MES1", "26.0667", "50.5577"},
{"South America", "São Paulo", "sa-east-1", "SAE1", "-23.5505", "-46.6333"},
{"US East", "N. Virginia", "us-east-1", "USE1", "37.4316", "-78.6569"},
{"US East", "Ohio", "us-east-2", "USE2", "40.4173", "-82.9071"},
{"US West", "N. California", "us-west-1", "USW1", "36.7783", "-122.08"},
{"US West", "Oregon", "us-west-2", "USW2", "44.000000", "-120.500000"},
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment