npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ineuronintelligence/ineuron-aws-deployer

v1.0.42

Published

ALB-EC2-AutoScaling Zero Downtime Deployment

Downloads

11

Readme

iNeuron AWS Deployer - G2BG Zero Downtime Deployment

(c) 2022 iNeuron Intelligence Pvt.

This file is part of the iNeuron AWS Deployer - G2BG Zero Downtime Auto Deployment via GitHub Actions.

The iNeuron AWS Deployer is action used to deploy iNeuron Backend APi's @ Zero Downtime and much more.

Only iNeuron Repository are allowed to use this package. Not A FREE SOFTWARE.

The iNeuron AWS Deployer.

Installation

NPM Install the package

npm i @ineuronintelligence/ineuron-aws-deployer

Available Services

[ ] getPreProdInstance - Takes a param string (appName) make sure tag:Instance-Depl-Type & tag:Usable & tag:AppName exists in the instance (Pre Production Instance).

[ ] createAMIImage - Takes params like (InstanceId, name, version), Here InstanceId - Pre-Prod InstanceId, name - appName, version - appVersion. - It is prefer to use npm package version and name of the particular project which is using this feature.

[ ] createLC - Takes params like (name, version, ImageId, InstanceType, KeyName, SecurityGroup, VolumeSize), This created a new Launch Configuration for auto-scaling.

[ ] checkImageIsReady - Takes param like (AMIImageId), This checks if the image is created and has become available.

[ ] getASLConfig - Takes params like (name, version). This is provides information about newly created auto scaling launch configuration.

[ ] describeASGroups - Takes param like (AutoScalingGroupName), This provides information about the autoscaling group which we want to correctly configure.

[ ] updateASGroup - Takes params like (AutoScalingGroupName, LaunchConfigurationName), Using the AutoScalingGroupName we update the launch configuration with the newly created launch configuration which contains new AMIImage.

[ ] updateListenerRules - Takes params like (albName, blueTGName, greenTGName, blueTGWeight, greenTGWeight). These events are triggered when the new AMIImage is ready and the new launch configuration is updated in the auto scaling group. This function updates the listener rules of the ALB to point to the new target group.

[ ] startInstanceRefreshNow - Takes param like (AutoScalingGroupName). Now that we have updated the listener rules with the new target group, we refresh the AutoScalingGroup to use the new Launch Configuration, This will take a while. Termination, Decommission the old instance and firing new instance.

[ ] describeInstanceRefresh - Takes params like (InstanceRefreshId, AutoScalingGroupName). This checks if the instance refresh status is completed.

Important Notes

Make sure you have tagged the instance with recommended tags.

Once the instanceRefresh is completed move the traffic from Blue TargetGroup of the Application Load Balancer to Green TargetGroup of the Application Load Balancer which is assigned to the AutoScalingGroup.

Use the updateListenerRules Service to update the weights of the targetgroup accordingly.

License and Declaration

Only for Internal Use. Not A FREE SOFTWARE.

(c) 2022 iNeuron Intelligence Pvt.

This concludes the Zero Downtime Deployment of the Application.