From 994413b50a4fcd07deba5340f3a1ec1fafdac4db Mon Sep 17 00:00:00 2001 From: cpu1 Date: Fri, 30 Jun 2023 13:59:38 +0530 Subject: [PATCH] Add support for us-iso-west-1 region --- pkg/apis/eksctl.io/v1alpha5/partitions.go | 2 +- pkg/apis/eksctl.io/v1alpha5/types.go | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/apis/eksctl.io/v1alpha5/partitions.go b/pkg/apis/eksctl.io/v1alpha5/partitions.go index 09433d73db..1bc9b82e46 100644 --- a/pkg/apis/eksctl.io/v1alpha5/partitions.go +++ b/pkg/apis/eksctl.io/v1alpha5/partitions.go @@ -61,7 +61,7 @@ var Partitions = partitions{ "EKS": "eks.amazonaws.com", "EKSFargatePods": "eks-fargate-pods.amazonaws.com", }, - regions: []string{RegionUSISOEast1}, + regions: []string{RegionUSISOEast1, RegionUSISOWest1}, endpointServiceDomainPrefix: "gov.ic.c2s", }, { diff --git a/pkg/apis/eksctl.io/v1alpha5/types.go b/pkg/apis/eksctl.io/v1alpha5/types.go index c4e280b1ed..272f8d9042 100644 --- a/pkg/apis/eksctl.io/v1alpha5/types.go +++ b/pkg/apis/eksctl.io/v1alpha5/types.go @@ -204,6 +204,9 @@ const ( // RegionUSISOBEast1 represents the region US ISOB East (Ohio). RegionUSISOBEast1 = "us-isob-east-1" + // RegionUSISOWest1 represents the region US ISOB West. + RegionUSISOWest1 = "us-iso-west-1" + // DefaultRegion defines the default region, where to deploy the EKS cluster DefaultRegion = RegionUSWest2 ) @@ -366,6 +369,9 @@ const ( // eksResourceAccountUSISOBEast1 defines the AWS EKS account ID that provides node resources in us-isob-east-1 eksResourceAccountUSISOBEast1 = "187977181151" + + // eksResourceAccountUSISOWest1 defines the AWS EKS account ID that provides node resources in us-iso-west-1 + eksResourceAccountUSISOWest1 = "608367168043" ) // Values for `VolumeType` @@ -512,6 +518,7 @@ func SupportedRegions() []string { RegionUSGovEast1, RegionUSISOEast1, RegionUSISOBEast1, + RegionUSISOWest1, } } @@ -641,6 +648,8 @@ func EKSResourceAccountID(region string) string { return eksResourceAccountUSISOEast1 case RegionUSISOBEast1: return eksResourceAccountUSISOBEast1 + case RegionUSISOWest1: + return eksResourceAccountUSISOWest1 default: return eksResourceAccountStandard }