Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.5 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.5 KB

tutum-startup

Register a new EC2 instance as a Tutum node on launch.

What?

This script is run at startup on new EC2 instances (user-data) to register the instance as a Tutum node.

Why?

At Vidsy we wanted to use Tutum, but also benefit from the controls and features of AWS.

Implementation

Currently the script:

  • Installs tutum-cli and aws-cli.
  • Sets environment variables for Tutum authentication.
  • Uses "Bring Your Own Node" CLI command to register new instance as Tutum node.
  • 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.
  • Sends a Slack notification telling the team that a new instance was launched.
  • Delete all installed packages and Bash history.

To-Do

Look at any open issues labeled as to-do.

Tutum Bugs

  • Tutum does not allow tags to be added to a node until it has finished deploying.

Notes