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")
}
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.