akvo / akvo-provisioning

Server and development environment provisioning data and configurations
9 stars 2 forks source link

AWS Fabric tasks #274

Closed peeb closed 8 years ago

peeb commented 8 years ago

This branch contains an added fabric task ec2_create_instance which currently serves on purpose, namely to launch an EC2 instance with an encrypted EBS volume attached to it mounted at /puppet for use in our hybrid approach to spinning up CartoDB.

The code to review is at the end of fabfile.py and usage instructions are in README_AWS.md.

@orifito

orifito commented 8 years ago

@peeb Great work!! :+1: For our 'ec2' environment, I would love to have a full automated bootstrapping process. I mean we should somehow integrate ec2_create_instance into bootstrap fab task. In this regard, with a single fab task we would be able to create a new ec2 instance with the /puppet partition encrypted, associate a new elastic IP address, and then run everything needed to bootstrap that newly created host (i.e. current bootstrap task). However we have a chicken egg problem with the IP association, since we need to know it in advance in order to properly configure the hiera json for a given host.

peeb commented 8 years ago

@orifito that's a really good point. I'm gonna think about that.