Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

pubudusj/serverless-aws-services

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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.

  1. Clone the repository.

  2. Install required packages by:

pip install -r requirements.txt -t .
  1. Crete the s3 bucket.
sam-app$ aws s3 mb s3://BUCKET_NAME
  1. To prepare the application for deployment, use the sam package command.
sam-app$ sam package \
    --output-template-file packaged.yaml \
    --s3-bucket BUCKET_NAME
  1. Deploy the package
sam-app$ sam deploy \
    --template-file packaged.yaml \
    --stack-name aws-services-list \
    --capabilities CAPABILITY_IAM
  1. 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

License

MIT License (MIT)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages