From bb3584e8a19825760d8a28b63fa999140216121d Mon Sep 17 00:00:00 2001 From: Furkat Gofurov Date: Fri, 16 Jun 2023 15:45:05 +0300 Subject: [PATCH 1/2] Add new regions and corresponding AMIs --- drivers/amazonec2/region.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/amazonec2/region.go b/drivers/amazonec2/region.go index d18ba39994..e453e2e315 100644 --- a/drivers/amazonec2/region.go +++ b/drivers/amazonec2/region.go @@ -17,18 +17,23 @@ var regionDetails map[string]*region = map[string]*region{ "ap-northeast-3": {"ami-0fa06c85437a220f5"}, "ap-southeast-1": {"ami-048b4b1ddefe6759f"}, "ap-southeast-2": {"ami-052a251c7ca533c26"}, + "ap-southeast-4": {"ami-01b54c470a1da561d"}, "ap-south-1": {"ami-01957c76cce45de38"}, + "ap-south-2": {"ami-0eaa3ccae04723740"}, "ap-east-1": {"ami-0a7893426ebe74a8c"}, "ca-central-1": {"ami-095509bf36d02a8e0"}, "cn-north-1": {"ami-0592ccadb56e65f8d"}, "cn-northwest-1": {"ami-007d0f254ea0f8588"}, "eu-central-1": {"ami-0d3905203a039e3b0"}, + "eu-central-2": {"ami-0e5cf0e302a738bde"}, "eu-north-1": {"ami-0803bdfa576dd60c2"}, "eu-south-1": {"ami-08a4feb1e48d2f9d8"}, + "eu-south-2": {"ami-048cc74e15ef972b1"}, "eu-west-1": {"ami-0b7fd7bc9c6fb1c78"}, "eu-west-2": {"ami-02ead6ecbd926d792"}, "eu-west-3": {"ami-0d7b738ade930e24a"}, "me-south-1": {"ami-0e53ffff39fa7b5c1"}, + "me-central-1": {"ami-0bcb1a83b40b4f666"}, "sa-east-1": {"ami-03f2389c2526e67bd"}, "us-east-1": {"ami-04cc2b0ad9e30a9c8"}, "us-east-2": {"ami-02fc6052104add5ae"}, From 44717c49a9f0c0a407745a28ca4b5b924a06645e Mon Sep 17 00:00:00 2001 From: Furkat Gofurov Date: Mon, 17 Jul 2023 10:11:48 +0300 Subject: [PATCH 2/2] Fix failing tests --- drivers/amazonec2/amazonec2_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amazonec2/amazonec2_test.go b/drivers/amazonec2/amazonec2_test.go index 03a719e216..8b4abbbcdc 100644 --- a/drivers/amazonec2/amazonec2_test.go +++ b/drivers/amazonec2/amazonec2_test.go @@ -127,7 +127,7 @@ func TestValidateAwsRegionValid(t *testing.T) { } func TestValidateAwsRegionInvalid(t *testing.T) { - regions := []string{"eu-central-2"} + regions := []string{"eu-central-3"} for _, region := range regions { _, err := validateAwsRegion(region)