Skip to content

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

Notifications You must be signed in to change notification settings

jskeates/tutum-startup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages