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
- 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.
- Sign up for AWS
- Log into AWS Console
- Create Key Pair
- Create Jumphost
- Create a role
- Create a user
- Create Security Group for ELBs
- Create Foundation AMI
- Setup Jumphost
- Setup Credentials
- Build and Bake BaseAMI
- Build and Bake Asgard
- Standup Asgard using Asgard
- Build and Bake Eureka
- Enable Eureka Integration in Asgard
- Build and Bake Edda
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.
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.
- Karyon
- Simian Army
- (TBD) AWS CLI
- (TBD) Turbine
- (TBD) ICE
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.
- In Asgard, Delete all AutoScaling Groups
- In Asgard, Delete all Load Balancers
- In Asgard, Delete all Security Groups
- In Asgard, Delete all Applications (these are stored in SimpleDB and miniscule in size)
- In the EC2 Console, go to the AMI page and de-register all of the AMIs you created
- 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.
- 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.