github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/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-central-1": "Z21DNDUVLTQW6Q", 13 "ap-south-1": "Z11RGJOFQNVJUP", 14 "ap-southeast-1": "Z3O0J2DXBE1FTB", 15 "ap-southeast-2": "Z1WCIGYICN2BYD", 16 "ap-northeast-1": "Z2M4EHUR26P7ZW", 17 "ap-northeast-2": "Z3W03O7B5YMIYP", 18 "sa-east-1": "Z7KQH4QJS55SO", 19 "us-gov-west-1": "Z31GFT0UA1I2HV", 20 } 21 22 // Returns the hosted zone ID for an S3 website endpoint region. This can be 23 // used as input to the aws_route53_record resource's zone_id argument. 24 func HostedZoneIDForRegion(region string) string { 25 return hostedZoneIDsMap[region] 26 }