github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/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-west-2": "Z3BJ6K6RIION7M", 9 "us-west-1": "Z2F56UZL2M1ACD", 10 "eu-west-1": "Z1BKCTXD74EZPE", 11 "central-1": "Z21DNDUVLTQW6Q", 12 "ap-southeast-1": "Z3O0J2DXBE1FTB", 13 "ap-southeast-2": "Z1WCIGYICN2BYD", 14 "ap-northeast-1": "Z2M4EHUR26P7ZW", 15 "sa-east-1": "Z7KQH4QJS55SO", 16 "us-gov-west-1": "Z31GFT0UA1I2HV", 17 } 18 19 // Returns the hosted zone ID for an S3 website endpoint region. This can be 20 // used as input to the aws_route53_record resource's zone_id argument. 21 func HostedZoneIDForRegion(region string) string { 22 return hostedZoneIDsMap[region] 23 }