Skip to content

Commit

Permalink
Merge pull request #5039 from rancher/add-new-regions
Browse files Browse the repository at this point in the history
Ensure new EKS regions can be selected when validating creds
  • Loading branch information
richard-cox authored Jun 22, 2023
2 parents a001728 + 670411c commit f93c008
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/shared/addon/utils/amazon.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,18 +624,22 @@ export const INSTANCE_TYPES = [
},
];

// These need to match the supported list in docker-machine:
// https://github.com/docker/machine/blob/master/drivers/amazonec2/region.go
// Supports
// 1) Validating AWS creds (used in both EC2 and EKS world)
// 2) Managing EC2 Nodes. See https://cloud-images.ubuntu.com/locator/ec2/ (and https://github.com/rancher/machine/blob/master/drivers/amazonec2/region.go#L13)
export const REGIONS = [
'af-south-1',
'ap-northeast-1',
'ap-northeast-2',
'ap-southeast-1',
'ap-southeast-2',
'ap-southeast-3',
'ap-southeast-4',
'ap-east-1',
'ap-south-1',
'ap-south-2',
'me-south-1',
'me-central-1',
'ca-central-1',
'cn-north-1',
'cn-northwest-1',
Expand All @@ -644,7 +648,9 @@ export const REGIONS = [
'eu-west-2',
'eu-west-3',
'eu-central-1',
'eu-central-2',
'eu-south-1',
'eu-south-2',
'sa-east-1',
'us-east-1',
'us-east-2',
Expand All @@ -654,6 +660,8 @@ export const REGIONS = [
'us-gov-east-1',
];

// Supports
// 1) Managing EKS clusters. See https://docs.aws.amazon.com/general/latest/gr/eks.html
export const EKS_REGIONS = [
'af-south-1',
'ap-northeast-1',
Expand Down

0 comments on commit f93c008

Please sign in to comment.