Scripts and instructions for Zero To Cloud With NetflixOSS
Groovy Shell
Latest commit 4e6a1ac May 16, 2015 @jmcgarr jmcgarr Update EurekaAsgard.md
Another typo...

README.md

Zero To Cloud With @NetflixOSS

Netflix has released a multitude of tools and applications to help in using the Cloud. Being infrastructure, they are more difficult to setup that just consuming a client library like a JAR in Central. In general, each application can run independently, but they work better together. This tutorial is focused on bringing up the @NetflixOSS stack on a fresh AWS account, in a similar style to how Netflix does it internally.

Feedback is always appreciated, please file an issue or a pull request to participate.

This page can be reached as nflx.it/zerotocloud

Assumptions

  • Working in US West (Oregon) aka us-west-2.
  • We’re performing non destructive operations, so if you have an existing AWS account setup, that will be fine and they won’t conflict. But it might be easier to find instances, etc if using a new region.
  • In the case of existing infrastructure, like keys, please follow the instructions closely and do not re-use existing provisioned items. I wouldn’t want to be responsible for opening up a security hole in existing infrastructure.
  • There are plenty of opportunities to lock down these applications at the network layer or the application layer. Or restrict what the instances can do. References will be made to additional security precautions, but they have not all been integrated into this tutorial.
  • This is not a "developing for the cloud" tutorial, that would make for a great followup.
  • This will cost money. Not much, but some.

Tutorial

  1. Sign up for AWS
  2. Log into AWS Console
  3. Create Key Pair
  4. Create Jumphost
  5. Create a role
  6. Create a user
  7. Create Security Group for ELBs
  8. Create Foundation AMI
  9. Setup Jumphost
  10. Setup Credentials
  11. Build and Bake BaseAMI
  12. Build and Bake Asgard
  13. Standup Asgard using Asgard
  14. Build and Bake Edda
  15. Build and Bake Eureka

When all done, irrelevant of how far you get, make sure to read the Clean up instructions below so that you don't get charged for resources that you're not using.

Extras

Setting up infrastructure can be frought with problems, so if you've made this far, congratulate yourself! Here are some additional exercises, which can help expand your knowledge of the Netflix stack or of AWS in general.

Clean up

The actions taken in this tutorial have create resources which AWS will charge you for. A couple of hours of usage won't add up to much. If you accidentally leave our instances running your volumes allocated, the costs can add up fast.

  1. In Asgard, Delete all AutoScaling Groups
  2. In Asgard, Delete all Load Balancers
  3. In Asgard, Delete all Security Groups
  4. In Asgard, Delete all Applications (these are stored in SimpleDB and miniscule in size)
  5. In the EC2 Console, go to the AMI page and de-register all of the AMIs you created
  6. In the EC2 Console, go to the snapshots section, delete all of the snapshots

FYI, The last two items would normally be cleaned up by Janitor monkey.

TODO

  • UDF variables from Asgard aren’t in the ubuntu user’s env
  • Have versions of modules match what is being wrapped
  • Stop tomcat on karyon instance
  • Multiple Eureka instances in different zones.