elb-dance is used to deregister and register instances with ELB. It can register and block until the instance is back "In Service".
elb-dance can be installed from pypi:
pip install elb-dance
Remember sudo
if you're not installing into a virtualenv owned by you.
elb-dance.
Usage:
elb-dance register <elb-name> [--instance-id=<id>] [--role=<role>]
elb-dance deregister <elb-name> [--instance-id=<id>] [--role=<role>]
elb-dance (-h | --help)
elb-dance --version
Options:
-h --help Show this screen.
--version Show version.
--instance-id=<id> The instance id to use
--role=<role> IAM role use to get temporary access keys.
The following examples assume that IAM instance roles are set up to allow you to access the load balancer.
De-register an instance from the ELB named my-elb
, assuming the instance has role myrole
. Run the following on the instance:
elb-dance deregister my-elb1
Register an instance and return when it's returned to service.
elb-dance register my-elb1
If you need to set credentials manually, it can be done through the environement
variables AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
.
Other authentication options are detailed here: https://code.google.com/p/boto/wiki/BotoConfig
MIT
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。