3 Star 0 Fork 0

Gitee 极速下载 / elb-dance

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/opbeat/elb-dance
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

elb-dance

elb-dance is used to deregister and register instances with ELB. It can register and block until the instance is back "In Service".

Install

elb-dance can be installed from pypi:

pip install elb-dance

Remember sudo if you're not installing into a virtualenv owned by you.

Usage

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.

Examples

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

Thanks

  • docopt by Vladimir Keleshev et al. which we've embedded into elb-dance
  • boto

License

MIT

The MIT License (MIT) Copyright (c) 2014 opbeat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

elb-dance 简化了到 AWS ELB 系统的注册和取消注册操作 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/mirrors/elb-dance.git
git@gitee.com:mirrors/elb-dance.git
mirrors
elb-dance
elb-dance
master

搜索帮助