From 9c28ad2f0f81da6bef9df9cec5b23e452419f886 Mon Sep 17 00:00:00 2001 From: chinmaysomani Date: Thu, 9 Mar 2023 17:17:52 +0530 Subject: [PATCH] sort AWS regions --- internal/aws/helpers.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/aws/helpers.go b/internal/aws/helpers.go index 00a5d27..8f6d0a4 100644 --- a/internal/aws/helpers.go +++ b/internal/aws/helpers.go @@ -1,10 +1,15 @@ package aws +import "sort" + func GetAllRegions() []string { - return []string{ + regions := []string{ "us-east-1", "us-east-2", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-southeast-3", "ap-south-1", "ap-northeast-3", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ca-central-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-south-1", "eu-west-3", "eu-north-1", "me-south-1", "me-central-1", "sa-east-1", "us-gov-east-1", "us-gov-west-1"} + + sort.Strings(regions) + return regions }