From b39458795bbdea256af45b629c266dc1d616d473 Mon Sep 17 00:00:00 2001 From: Pat Myron Date: Sat, 16 Oct 2021 17:18:51 -0700 Subject: [PATCH 1/2] provider: cn-northwest-1 (Ningxia) hostedZoneID https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region --- internal/service/s3/hosted_zones.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/service/s3/hosted_zones.go b/internal/service/s3/hosted_zones.go index 2f1cd5972bc..d3743665088 100644 --- a/internal/service/s3/hosted_zones.go +++ b/internal/service/s3/hosted_zones.go @@ -7,7 +7,7 @@ import ( ) // This list is copied from -// http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_website_region_endpoints +// https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region // It currently cannot be generated from the API json. // See https://docs.amazonaws.cn/en_us/general/latest/gr/rande.html#s3_website_region_endpoints // See https://docs.aws.amazon.com/pt_br/govcloud-us/latest/ug-east/using-govcloud-endpoints.html @@ -22,6 +22,7 @@ var hostedZoneIDsMap = map[string]string{ endpoints.ApSoutheast1RegionID: "Z3O0J2DXBE1FTB", endpoints.ApSoutheast2RegionID: "Z1WCIGYICN2BYD", endpoints.CaCentral1RegionID: "Z1QDHH18159H29", + endpoints.CnNorthwest1RegionID: "Z282HJ1KT0DH03", endpoints.EuCentral1RegionID: "Z21DNDUVLTQW6Q", endpoints.EuNorth1RegionID: "Z3BAZG2TWCNX0D", endpoints.EuSouth1RegionID: "Z3IXVV8C73GIO3", From 24aed6dfc7a57c3136bf858e81e07ccce1ee3092 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Mon, 18 Oct 2021 10:12:43 -0400 Subject: [PATCH 2/2] Simplify comments. --- internal/service/s3/hosted_zones.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/service/s3/hosted_zones.go b/internal/service/s3/hosted_zones.go index d3743665088..49a7ace3179 100644 --- a/internal/service/s3/hosted_zones.go +++ b/internal/service/s3/hosted_zones.go @@ -6,12 +6,7 @@ import ( "github.com/aws/aws-sdk-go/aws/endpoints" ) -// This list is copied from -// https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_region -// It currently cannot be generated from the API json. -// See https://docs.amazonaws.cn/en_us/general/latest/gr/rande.html#s3_website_region_endpoints -// See https://docs.aws.amazon.com/pt_br/govcloud-us/latest/ug-east/using-govcloud-endpoints.html -// See https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/using-govcloud-endpoints.html +// See https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_website_region_endpoints. var hostedZoneIDsMap = map[string]string{ endpoints.AfSouth1RegionID: "Z11KHD8FBVPUYU", endpoints.ApEast1RegionID: "ZNB98KWMFR0R6",