github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/builtin/providers/aws/hosted_zones.go (about) 1 package aws 2 3 // This list is copied from 4 // http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_website_region_endpoints 5 // It currently cannot be generated from the API json. 6 var hostedZoneIDsMap = map[string]string{ 7 "us-east-1": "Z3AQBSTGFYJSTF", 8 "us-east-2": "Z2O1EMRO9K5GLX", 9 "us-west-2": "Z3BJ6K6RIION7M", 10 "us-west-1": "Z2F56UZL2M1ACD", 11 "eu-west-1": "Z1BKCTXD74EZPE", 12 "eu-west-2": "Z3GKZC51ZF0DB4", 13 "eu-central-1": "Z21DNDUVLTQW6Q", 14 "ap-south-1": "Z11RGJOFQNVJUP", 15 "ap-southeast-1": "Z3O0J2DXBE1FTB", 16 "ap-southeast-2": "Z1WCIGYICN2BYD", 17 "ap-northeast-1": "Z2M4EHUR26P7ZW", 18 "ap-northeast-2": "Z3W03O7B5YMIYP", 19 "ca-central-1": "Z1QDHH18159H29", 20 "sa-east-1": "Z7KQH4QJS55SO", 21 "us-gov-west-1": "Z31GFT0UA1I2HV", 22 } 23 24 // Returns the hosted zone ID for an S3 website endpoint region. This can be 25 // used as input to the aws_route53_record resource's zone_id argument. 26 func HostedZoneIDForRegion(region string) string { 27 return hostedZoneIDsMap[region] 28 }