joshrtay / aws-read-region

Read the AWS region from environment variables or ~/.aws config.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

read-region

Build status Git tag NPM version Code style

Read the AWS region from environment variables or ~/.aws config.

Installation

$ npm install aws-read-region

Usage

const readRegion = require('aws-read-region')

readRegion().then(config => config) // => {region: "us-west-2"}

API

readRegion()

Returns: returns object with region set

License

MIT

About

Read the AWS region from environment variables or ~/.aws config.


Languages

Language:JavaScript 86.7%Language:Makefile 13.3%