AWS Services per Region
This is a serverless application which provides an API endpoint to get AWS services with available regions.
Deploy the sample application
This is a serverless application built with SAM. You may deploy this as a normal SAM application.
-
Clone the repository.
-
Install required packages by:
pip install -r requirements.txt -t .
- Crete the s3 bucket.
sam-app$ aws s3 mb s3://BUCKET_NAME
- To prepare the application for deployment, use the
sam package
command.
sam-app$ sam package \
--output-template-file packaged.yaml \
--s3-bucket BUCKET_NAME
- Deploy the package
sam-app$ sam deploy \
--template-file packaged.yaml \
--stack-name aws-services-list \
--capabilities CAPABILITY_IAM
- After deployment is complete you can run the following command to retrieve the API Gateway Endpoint URL:
sam-app$ aws cloudformation describe-stacks \
--stack-name aws-services-list \
--query 'Stacks[].Outputs' \
--output table
Usage
- From above output, use the 'API Gateway endpoint URL' value.
- Use it in a browser or any http client.
- It will output the AWS services list with region codes
To get the regions names:
- Use query parameter
region_names=true
to get the real region names instead of codes
Output format
With Region Codes:
{
"last_updated":"2019-10-29",
"data":{
"Alexa for Business":[
"us-east-1"
],
"Amazon API Gateway":[
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"cn-north-1",
"cn-northwest-1",
...
...
],
...
...
}
}
With Region Names:
{
"last_updated":"2019-10-29",
"data":{
"Alexa for Business":[
"Northern Virginia"
],
"Amazon API Gateway":[
"AWS GovCloud (US-East)",
"AWS GovCloud (US-West)",
"Bahrain",
"Beijing",
"Frankfurt",
"Hong Kong",
"Ireland",
"London",
...
...
],
...
...
}
}
Notes
These data are based on AWS's official Region Table. This service provides the extracted data of the above page.
Demo
- With region codes: https://aws-services.pubudu.dev/.
- With region names: https://aws-services.pubudu.dev/?region_names=true.
License
MIT License (MIT)