Skip to content

yuuki/albio

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
pkg
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

albio

Latest Version Build Status Go Report Card License

A CLI tool to gracefully manage EC2 instances on ALB/NLB.

Usage

Show loadbalancers status

$ 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

$ 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.

Author

y_uuki

About

albio: A CLI tool to gracefully manage EC2 instances with ALB/NLB

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published