node-elasticbeanstalk-terminate

AWS Elastic Beanstalk CLI and API to terminate a specified environment

Usage no npm install needed!

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

README

node-elasticbeanstalk-terminate

Install

$ npm install --save node-elasticbeanstalk-terminate

Usage

const ebterminate = require('node-elasticbeanstalk-terminate');

ebdterminate('unicorns').then((result) => {
  console.log(result);
}).catch((err) => {
  console.log(err);
});

API

ebterminate(environment, [options]) => promise

environment

Type: string

The Elastic Beanstalk environment to terminate.

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 to a sum-up of what is being terminated.

CLI

$ npm install --global node-elasticbeanstalk-terminate
$ ebterminate --help

  Usage
    ebterminate [input]

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

  Examples
    $ ebterminate unicorns
    $ ebterminate unicorns --region eu-west-1

License

MIT © Alexis Kofman