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