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