Register a new EC2 instance as a Tutum node on launch.
This script is run at startup on new EC2 instances (user-data
) to register the instance as a Tutum node. Making use of the Bring Your Own Node feature.
At Vidsy we wanted to use Tutum, but also benefit from the controls and features of AWS.
Currently the script:
- Installs
tutum-cli
andaws-cli
. - Retrieves Tutum authentication from AWS S3 bucket.
- Registers new instance as Tutum node via CLI.
- Remove nodes from Tutum which have become "
Unreachable
". - Waits for Tutum deployment to finish.
- Retrieves EC2 instance tags.
- Adds each tag as a Tutum tag.
- Delete all installed packages and Bash history.
Has been tested on: Ubuntu 14.04, RHEL 7, CentOS 7 and Fedora 23.
Make sure to check your OS is compatible with the Tutum Agent (see list).
Look at any open issues labeled as to-do
.
- Help improve this repo!
- Feel free to ping me (
@revett
) on the Tutum community Slack with any questions. - MIT License (MIT).