/docker-cloud-ec2-status

(Infra) Removes EC2 instance from ASG on Docker Cloud node error.

Primary LanguageGoMIT LicenseMIT

docker-cloud-ec2-status

Go service which polls the Docker Cloud REST API, and removes itself from it's AWS auto-scaling group if it fails a Docker Cloud node health check.

Usage

In development:

go build && DC_USER=X DC_API_KEY=X DC_NODE_UUID=X ./docker-cloud-ec2-status

Environment variables:

- DC_USER      -> Docker Cloud username
- DC_API_KEY   -> Docker Cloud API key
- DC_NODE_UUID -> Any Docker Cloud node UUID