Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-ebc

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-ebc

Describe details of an environment at Elastic Beanstalk by their URL

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

aws-ebc Build Status Dependency Status Npm Package Version

Describe details of an environment at Elastic Beanstalk by their URL

Why?

If you use Blue Green Deployment with Elastic Beanstalk, know that there is no fixed id of environments. Through the Swap Url's you make the switch the URL of environments.

So you can assume that the only fixed reference is the URL of your environment. However, the SDK of AWS does not Provide an API where you find in this way.

And this package solve this problem.

Install

npm i --save aws-ebc

Usage

const awsEbc = require('aws-ebc');

const url = 'my-application.us-east-1.elasticbeanstalk.com';
const appName = 'my-application';

const credentials = {
    region: 'us-east-1',
    accessKeyId: 'ACCESSKEYID',
    secretAccessKey: 'SECRETACCESSKEY'
};

awsEbc(url, appName, credentials).then(environment => {
    console.log(environment.id) // aq14fG1a-1
    console.log(environment.name) // example
    console.log(environment.health) // Green
    console.log(environment.status) // Ready
});

API

awsEbc(url, appName, credentials)

Return an object with id, name, health and status of the environment.

url

Type: string

URL of the environment you're searching.

appName

Type: string

The application name of the environment.

credentials.region

Type: string

The region that their environment is available.

credentials.accessKeyId

Type: string

Acces Key Id offered by AWS Identity and Access Management (IAM)

credentials.secretAccessKey

Type: string

Secret Access Key offered by AWS Identity and Access Management (IAM)

License

MIT © Cauê Alves

Keywords

FAQs

Package last updated on 15 Jul 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc