Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 631 Bytes

readme.md

File metadata and controls

28 lines (20 loc) · 631 Bytes

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.