Skip to content

Container definition to clean up terminated aws hosts from rancher environments

Notifications You must be signed in to change notification settings

chrisurwin/rancher-aws-host-cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rancher AWS host cleanup

Info

This repo contains the code to build a docker container that runs under a Rancher environment and removes terminiated AWS hosts.

The container is alpine based and utilises the go AWSSDK.

An AWS key and secret are required with permissions to describe instances in order for it to validate the host status. An assumption is made that the hostname of the host to be checked is the private DNS name assigned by Amazon. The second element of the DNS name would then be the region that the host belongs to. If this name is different then the host will not be removed from Rancher. Hosts from other providers will generate an error in the log but will be otherwise untouched.

Usage

To use the built container please use the library entry in the Rancher Community library

About

Container definition to clean up terminated aws hosts from rancher environments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages