Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuuki/albio
albio: A CLI tool to gracefully manage EC2 instances with ALB/NLB
https://github.com/yuuki/albio
aws aws-alb aws-elb go
Last synced: 27 days ago
JSON representation
albio: A CLI tool to gracefully manage EC2 instances with ALB/NLB
- Host: GitHub
- URL: https://github.com/yuuki/albio
- Owner: yuuki
- License: mit
- Created: 2017-05-18T13:30:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-18T15:37:42.000Z (over 6 years ago)
- Last Synced: 2024-06-20T13:45:52.831Z (6 months ago)
- Topics: aws, aws-alb, aws-elb, go
- Language: Go
- Homepage:
- Size: 13 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# albio
[![Latest Version](http://img.shields.io/github/release/yuuki/albio.svg?style=flat-square)][release]
[![Build Status](http://img.shields.io/travis/yuuki/albio.svg?style=flat-square)][travis]
[![Go Report Card](https://goreportcard.com/badge/github.com/yuuki/albio)][goreport]
[![License](http://img.shields.io/:license-mit-blue.svg)][license][release]: https://github.com/yuuki/albio/releases
[travis]: http://travis-ci.org/yuuki/albio
[goreport]: https://goreportcard.com/report/github.com/yuuki/albio
[license]: http://doge.mit-license.orgA CLI tool to gracefully manage EC2 instances on ALB/NLB.
## Usage
### Show loadbalancers status
```shell
$ albio status
[
{
"name": "albtest001",
"dnsname": "albtest001-00000000.ap-northeast-1.elb.amazonaws.com",
"arn": "arn:aws:elasticloadbalancing:ap-northeast-1:100000000000:loadbalancer/app/albtest001/11xxxxxxxxxxxxxxxxxx"
"type": "application",
"scheme": "internet-facing",
"instances": [
{
"instance-id": "i-xxxxxxxxxxxxxxxxx"
},
{
"instance-id": "i-yyyyyyyyyyyyyyyyy"
}
]
}
]
```### Take an instance under maintenance
```shell
$ sudo mkdir -m 777 -p /var/lib/albio
$ albio detach --self > /var/lib/albio/loadbalancers.json
--> Detaching i-xxxxxxxxxxxxxxxxx from albtest001
$ # something to restart command
$ cat /var/lib/albio/loadbalancers.json | albio attach --self
--> Attaching i-0f5ffb9f0a75e6b85 to albtest001
```## Debugging
Set non-zero number or non-empty string to the `ALBIO_DEBUG` enviroment variable.
## License
[The MIT License](./LICENSE).
## Author
[y_uuki](https://github.com/yuuki)