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 - npm Package Compare versions

Comparing version 0.1.0 to 1.0.0

22

index.js

@@ -49,15 +49,27 @@ 'use strict';

let environmentId;
let environment = {
id: false,
name: false,
health: false,
status: false
};
data.Environments.forEach(e => {
if (canonicalName === e.CNAME) environmentId = e.EnvironmentId
if (canonicalName === e.CNAME) {
environment = {
id: e.environmentId,
name: e.EnvironmentName,
health: Health,
status: Status
};
};
});
if (!environmentId) {
return reject(`No environments are associated with the following canonical name: ${canonicalName}`);
if (!environment.id) {
return reject(`No environment are associated with the following canonical name: ${canonicalName}`);
}
return resolve(environmentId);
return resolve(environment);
});
});
};
{
"name": "aws-ebc",
"version": "0.1.0",
"version": "1.0.0",
"description": "Get the id of environment on Elastic Beanstalk by their canonical name.",

@@ -22,9 +22,5 @@ "license": "MIT",

"eb",
"elastic",
"beanstalk",
"elasticbeanstalk",
"get",
"environment",
"id",
"cname"
"describe"
],

@@ -31,0 +27,0 @@ "devDependencies": {

@@ -8,3 +8,3 @@ # aws-ebc [![Build Status](https://travis-ci.org/ceasbz/aws-ebc.svg?branch=master)](https://travis-ci.org/ceasbz/aws-ebc) [![Dependency Status](https://david-dm.org/ceasbz/aws-ebc.svg?style=flat-square)](https://david-dm.org/ceasbz/aws-ebc) [![Npm Package Version](https://img.shields.io/npm/v/aws-ebc.svg?style=flat-square)](https://www.npmjs.org/package/aws-ebc)

If you use Blue Green Deployment with Elastic Beanstalk, know that there is no fixed id for the environments. Through the Swap Url's you make the switch the canonical name of the environments.
If you use ***Blue Green Deployment*** with [Elastic Beanstalk](https://aws.amazon.com/elasticbeanstalk/), know that there is no fixed id for the environments. Through the Swap Url's you make the switch the canonical name of the environments.

@@ -74,2 +74,2 @@ So you can assume that the only fixed reference is the canonical name of your environment. However, the SDK of AWS does not Provide an API where you find in this way. And this package is for it :)

MIT © [Cauê Alves](./README.md)
MIT © [Cauê Alves](./LICENSE)
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