Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

eb-env

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eb-env

Add config files to your elastic beanstalk project to seed environment information. Use module to get environment info in your app.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

eb-env

Add config files to your elastic beanstalk project to seed environment information. Use module to get environment info in your app.

Installation

To get command line tool:

npm install eb-env -g

To add to your project:

npm install eb-env

Usage

Initialize project

From project root:

eb-env init

The above command will add a config file to your .ebextensions directory. The config file will add environment information to a temp file so the eb-env module can consume it.

Use module

var ebEnv = require('eb-env');

var envName = ebEnv.name;

By default, the environment info is loaded from the temp file mentioned above and copied into a file in the module directory (in case the temp file goes away). Alternatively, you can load from a different file:

var ebEnv = require('eb-env');

ebEnv.load('/my/eb-env.json');

var envName = ebEnv.name;

Available environment info

name

The full name of your elastic beanstalk environment.

app.sourceUrl

The URL where the source of your app was retrieved.

app.sourceId

The commit ID of the deployed version of your app.

Keywords

elastic

FAQs

Package last updated on 10 Dec 2013

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