Socket
Socket
Sign inDemoInstall

aws-regions

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aws-regions

List of AWS Regions and Availability Zones


Version published
Maintainers
1
Created

Readme

Source

AWS Regions

Region CodeRegion NameAvailability Zones
us-east-1*N. Virginiaus-east-1a us-east-1b us-east-1c us-east-1d us-east-1e us-east-1f
us-east-2Ohious-east-2a us-east-2b us-east-2c
us-west-1*N. Californiaus-west-1a us-west-1b us-west-1c
us-west-2Oregonus-west-2a us-west-2b us-west-2c
us-gov-west-1**US GovCloud Westus-gov-west-1a us-gov-west-1b
ca-central-1Canadaca-central-1a ca-central-1b
eu-west-1Irelandeu-west-1a eu-west-1b eu-west-1c
eu-west-2Londoneu-west-2a eu-west-2b
eu-west-3Pariseu-west-3a eu-west-3b eu-west-3c
eu-central-1Frankfurteu-central-1a eu-central-1b eu-central-1c
ap-northeast-1*Tokyoap-northeast-1a ap-northeast-1b ap-northeast-1c
ap-northeast-2Seoulap-northeast-2a ap-northeast-2c
ap-southeast-1Singaporeap-southeast-1a ap-southeast-1b
ap-southeast-2Sydneyap-southeast-2a ap-southeast-2b ap-southeast-2c
ap-south-1Mumbaiap-south-1a ap-south-1b
sa-east-1*Sao Paulosa-east-1a sa-east-1b sa-east-1c
cn-north-1***Bejingcn-north-1a cn-north-1b
cn-northwest-1***Ningxiacn-northwest-1a cn-northwest-1b
coming soonBahrain...
coming soonHong Kong...
coming soonStockholm...
coming soonSAR...
coming soonUS GovCloud East...

* To ensure that resources are distributed across the Availability Zones for these regions, they may differ for each AWS account. You can run aws ec2 describe-availability-zones --region $REGION to be sure which ones are available to you.

** The US GovCloud region is only available to official U.S. government agencies and organizations.

*** The China regions are only available to AWS in China accounts.

Javascript API

$ npm install aws-regions
const awsRegions = require('aws-regions')
.list(options: Object)

Returns all the regions in a list format.

awsRegions.list()
/* only the public regions */
awsRegions.list({ public: true })
[
  {
    name: 'n-virginia',
    code: 'us-east-1',
    public: true,
    zones: ['...']
  },
  // ...
]
  • options
    • public If true, will only return regions publicly available with a regular AWS account. Defaults to false.
.get(nameOrCode: String)

Finds a region by the name or the code.

awsRegions.get('n-virginia')
/* or */
awsRegions.get('us-east-1')
{
  name: 'n-virginia',
  code: 'us-east-1',
  public: true,
  zones: ['...']
}
.regions

The raw region data object.

{
  'n-virginia': {
    code: 'us-east-1',
    public: true,
    zones: ['us-east-1a', '...']
  },
  // ...
}

Raw Data

You can download a JSON file with all the region data here.

License

MIT © Jason Maurer

Keywords

FAQs

Last updated on 28 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc