Skip to content

Latest commit

 

History

History

v2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AWS Regions - Go

Usage

package main

import (
	"fmt"
	"github.com/jsonmaur/aws-regions/v2"
)

func main() {
	// see list of all regions
	fmt.Println(regions.List())
	
	// other available functions
	regions.ListPublic()
	regions.LookupByCode("us-east-2")
	regions.LookupByName("Ohio")
}

Zone Limit

If a region's data object includes ZoneLimit: int, that means AWS accounts are limited to this number of availability zones (which will differ based on when your account was created.) You'll need to get your specific availability zones for this region with the AWS API or CLI.