chore(regions): sort AWS regions (#2198)

Co-authored-by: sergargar <sergargar@users.noreply.github.com>
This commit is contained in:
Sergio Garcia
2023-04-12 13:24:14 +02:00
committed by GitHub
parent 9b01e3f1c9
commit 25630f1ef5
2 changed files with 2916 additions and 2912 deletions

View File

@@ -38,6 +38,10 @@ for page in get_parameters_by_path_paginator.paginate(
regions["aws-us-gov"].append(region["Value"])
else:
regions["aws"].append(region["Value"])
# Sort regions per partition
regions["aws"] = sorted(regions["aws"])
regions["aws-cn"] = sorted(regions["aws-cn"])
regions["aws-us-gov"] = sorted(regions["aws-us-gov"])
regions_by_service["services"][service["Value"]]["regions"] = regions
# Include the regions for the subservices and the services not present