Skip to content

Commit

Permalink
Add support for us-iso-west-1 region
Browse files Browse the repository at this point in the history
  • Loading branch information
cPu1 committed Aug 23, 2023
1 parent 89879e2 commit 994413b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/eksctl.io/v1alpha5/partitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
{
Expand Down
9 changes: 9 additions & 0 deletions pkg/apis/eksctl.io/v1alpha5/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -512,6 +518,7 @@ func SupportedRegions() []string {
RegionUSGovEast1,
RegionUSISOEast1,
RegionUSISOBEast1,
RegionUSISOWest1,
}
}

Expand Down Expand Up @@ -641,6 +648,8 @@ func EKSResourceAccountID(region string) string {
return eksResourceAccountUSISOEast1
case RegionUSISOBEast1:
return eksResourceAccountUSISOBEast1
case RegionUSISOWest1:
return eksResourceAccountUSISOWest1
default:
return eksResourceAccountStandard
}
Expand Down

0 comments on commit 994413b

Please sign in to comment.