Skip to content

Commit

Permalink
Merge pull request #7 from one2nc/sort-regions
Browse files Browse the repository at this point in the history
Sort AWS regions
  • Loading branch information
chinmay185 authored Mar 9, 2023
2 parents 64f8b31 + 9c28ad2 commit e019e5f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/aws/helpers.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit e019e5f

Please sign in to comment.