From e6e7929a4ea846e0d861fd371a3c026bf4742ef6 Mon Sep 17 00:00:00 2001 From: Aaron Turner Date: Wed, 2 Aug 2023 12:49:39 -0700 Subject: [PATCH] Add missing AWS regions to predictor Fixes: #507 --- CHANGELOG.md | 3 ++- internal/predictor/constants.go | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2ed2f05..a90c36a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # AWS SSO CLI Changelog -## [v1.11.0] - 2023-07-31 +## [v1.11.0] - 2023-08-02 ### Bugs @@ -19,6 +19,7 @@ * `ExpiresStr` field name is now `Expires` to match the header * `Expires` is now `ExpiresEpoch` as both field name and header * `ARN` header is now `Arn` to match the field name + * Add missing AWS Regions & SSO Regions #507 ### Deprecated diff --git a/internal/predictor/constants.go b/internal/predictor/constants.go index d586ce9b..e5084385 100644 --- a/internal/predictor/constants.go +++ b/internal/predictor/constants.go @@ -53,14 +53,20 @@ var AvailableAwsRegions []string = []string{ "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", + "ap-southeast-3", + "ap-southeast-4", "ap-northeast-1", "ca-central-1", "eu-central-1", + "eu-central-2", "eu-west-1", "eu-west-2", - "eu-south-1", "eu-west-3", + "eu-south-1", + "eu-south-2", "eu-north-1", + "il-central-1", + "me-central-1", "me-south-1", "sa-east-1", } @@ -69,18 +75,26 @@ var AvailableAwsRegions []string = []string{ var AvailableAwsSSORegions []string = []string{ "us-east-1", "us-east-2", + "us-west-1", "us-west-2", + "af-south-1", + "ap-east-1", "ap-south-1", + "ap-northeast-1", "ap-northeast-2", + "ap-northeast-3", "ap-southeast-1", "ap-southeast-2", - "ap-northeast-1", + "ap-southeast-3", "ca-central-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-west-3", + "eu-south-1", "eu-north-1", "sa-east-1", + "me-south-1", + "us-gov-east-1", "us-gov-west-1", }