项目作者: bosondata

项目描述 :
Yet Another Aliyun ECS Controller
高级语言: Rust
项目地址: git://github.com/bosondata/ali-ecs-ctl.git
创建时间: 2017-04-02T13:44:28Z
项目社区:https://github.com/bosondata/ali-ecs-ctl

开源协议:MIT License

下载


Yet Another Aliyun ECS Controller

Build

  1. $ cargo build --release

To build a statically linked binary, use the x86_64-unknown-linux-musl target:

  1. $ cargo build --release --target=x86_64-unknown-linux-musl

Usage

Define credentials as environment variable:

  1. export ALIYUN_ACCESS_KEY_ID=<ALIYUN-ACCESS-KEY>
  2. export ALIYUN_SECRET=<ALIYUN-SECRET>

List instances

  1. $ ali-ecs-ctl list

Boot instance

Boot single instance by ip:

  1. $ ali-ecs-ctl boot --ip <instance_public_ip_address>

Reboot instances

Reboot instances if ssh timeout:

  1. $ ali-ecs-ctl reboot -c ssh

Reboot instances if ping timeout:

  1. $ ali-ecs-ctl reboot -c ping

Reboot single instance by ip:

  1. $ ali-ecs-ctl reboot --ip <instance_public_ip_address>

Reboot ALL instances!

  1. $ ali-ecs-ctl rebootall

License

The MIT License (MIT)

Copyright (c) 2016 - 2017 BosonData

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.