From 6ef09b3c0860e8a91e8fb33945331529cb321be7 Mon Sep 17 00:00:00 2001 From: Ilya Dmitrichenko Date: Wed, 6 Jun 2018 16:36:46 +0100 Subject: [PATCH] The eastern region is us-east-1, not us-east-2 --- cmd/eksctl/create.go | 6 +++--- pkg/eks/cfn.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/eksctl/create.go b/cmd/eksctl/create.go index 501615e506..f5c88bb7fb 100644 --- a/cmd/eksctl/create.go +++ b/cmd/eksctl/create.go @@ -31,7 +31,7 @@ func createCmd() *cobra.Command { const ( EKS_REGION_US_WEST_2 = "us-west-2" - EKS_REGION_US_EAST_2 = "us-east-2" + EKS_REGION_US_EAST_1 = "us-east-1" DEFAULT_EKS_REGION = EKS_REGION_US_WEST_2 DEFAULT_NODE_COUNT = 2 DEFAULT_NODE_TYPE = "m5.large" @@ -96,8 +96,8 @@ func doCreateCluster(cfg *eks.ClusterConfig) error { return fmt.Errorf("--ssh-public-key must be non-empty string") } - if cfg.Region != EKS_REGION_US_WEST_2 && cfg.Region != EKS_REGION_US_EAST_2 { - return fmt.Errorf("--region=%s is not supported only %s and %s are supported", cfg.Region, EKS_REGION_US_WEST_2, EKS_REGION_US_EAST_2) + if cfg.Region != EKS_REGION_US_WEST_2 && cfg.Region != EKS_REGION_US_EAST_1 { + return fmt.Errorf("--region=%s is not supported only %s and %s are supported", cfg.Region, EKS_REGION_US_WEST_2, EKS_REGION_US_EAST_1) } if err := ctl.LoadSSHPublicKey(); err != nil { diff --git a/pkg/eks/cfn.go b/pkg/eks/cfn.go index 9761970f6b..814457f423 100644 --- a/pkg/eks/cfn.go +++ b/pkg/eks/cfn.go @@ -277,7 +277,7 @@ func (c *ClusterProvider) stackParamsDefaultNodeGroup() map[string]string { // currently source of truth for these is here: // https://docs.aws.amazon.com/eks/latest/userguide/launch-workers.html "us-west-2": "ami-73a6e20b", - "us-east-2": "ami-dea4d5a1", + "us-east-1": "ami-dea4d5a1", } if c.cfg.NodeAMI == "" {