node-elasticbeanstalk-list

AWS Elastic Beanstalk CLI and API to list applications and environments

Usage no npm install needed!

<script type="module">
  import nodeElasticbeanstalkList from 'https://cdn.skypack.dev/node-elasticbeanstalk-list';
</script>

README

node-elasticbeanstalk-list

Install

$ npm install --save node-elasticbeanstalk-list

Usage

const eblist = require('node-elasticbeanstalk-list');

eblist().then((apps) => {
  console.log(apps);
}).catch((err) => {
  console.log(err);
});

API

eblist([options]) => promise

options

region

Type: string

The region where your Elastic Beanstalk is deployed. This is an optional parameter because it should be defined from the AWS_REGION env variable, but for some cases it could be convenient to override it.

promise

The returned promise give access as a string to the list of applications and their environments.

Application Name:
  my-wonderful-app
Environments:
  unicorns
    currentVersion: app-161107_120345
    cname: unicorns.eu-west-1.elasticbeanstalk.com
    lastUpdate: Tue Nov 08 2016 10:20:31 GMT+0100 (CET)
    status: Ready

CLI

$ npm install --global node-elasticbeanstalk-list
$ eblist --help

  Usage
    eblist

  Options
    --region  the region where the Elastic Beanstalk is deployed.

  Examples
    $ eblist
    $ eblist --region eu-west-1

License

MIT © Alexis Kofman