Socket
Book a DemoInstallSign in
Socket

elbtool

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elbtool

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Elbtool

Register and deregister instance from an AWS ELB

Requirements

  • Instance must be a member of an IAM role with the proper permissions
  • aws-sdk

Usage

Originally this was intended to be used by automatic reboot scripts to deregister instances before shutting them down, but it can also be triggered manually.

Note that if you are NOT running on the EC2 instance you want to (de-)register, you will need to specify --instance-id INSTANCE_ID.

To register an instance

$ elbtool --register LOAD_BALANCER_NAME

To de-register an instance

$ elbtool --deregister LOAD_BALANCER_NAME

Other important options

  • --register-timeout -- Number of seconds to wait when registering an instance before giving up and returning an error. By default this is set to the health check interval times healthy_threshold (the number of times an instance must return a successful health check to be considered health) plus 15 seconds (for buffer)
  • --deregister-timeout -- Number of seconds to wait when de-registering an instance before giving up and returning an error. If connection draining is enabled, this waits for connection_draining + 5 seconds. If not, it just waits 5 seconds (for buffer).

FAQs

Package last updated on 23 Nov 2016

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.