In response to requests from AWS customers, I have been asking our service teams to find ways to make information about our regions and services available programmatically. Today I am happy to announce that this information is available in the AWS Systems Manager Parameter Store, and that you can easily access it from your scripts and your code. You can get a full list of active regions, find out which services are available with them, and much more.
I’ll use the AWS Command Line Interface (CLI) for most of my examples; you can also use the AWS Tools for Windows PowerShell or any of the AWS SDKs. As is the case with all of the CLI commands, you can request output in JSON, tab-delimited text, or table format. I’ll use JSON, and will make liberal use of the
jq utility to show the more relevant part of the output from each query.
Here’s how to query for the list of active regions:
Here’s how to display a complete list of all available AWS services, sort them into alphabetical order, and display the first 10 (out of 155, as I write this):
Here’s how to get the list of services that are available in a given region (again, first 10, sorted):
Here’s how to get the list of regions where a service (Amazon Athena, in this case) is available:
Here’s how to use the path to get the name of a service:
And here’s how you can find the regional endpoint for a given service, again using the path:
This data is available now and you can start using it today at no charge.