ployground / ploy

A tool to manage servers through a central configuration. Plugins allow provisioning, configuration and other management tasks.
http://ploy.readthedocs.org
BSD 3-Clause "New" or "Revised" License
78 stars 15 forks source link

Create an EBS volume from an EBS snapshot #4

Closed natea closed 9 years ago

natea commented 14 years ago

It would be really useful to be able to create new EBS volumes from an existing EBS snapshot.

The aws.conf file could have something like this:

[instance:demo-server]
keypair = default
securitygroups = demo-server
region = eu-west-1
placement = eu-west-1a
image = ami-a62a01d2
snapshot = snap-2d8cd144 /dev/sdf
startup_script = startup-demo-server
fabfile = `fabfile.py`_

When you launch the instance demo-server, it would then create a new EBS volume from the snapshot "snap-2d8cd144" and attach it to the device /dev/sdf.

The info returned from the aws script would look something like this: INFO: Instance running. INFO: Instances DNS name ec2-184-73-240-104.compute-1.amazonaws.com INFO: Instances public DNS name ec2-184-73-240-104.compute-1.amazonaws.com INFO: Instances volume ID vol-58fc3031 created from snap-2d8cd144

natea commented 14 years ago

I just added support for this in my fork. here is the commit: http://github.com/natea/mr.awsome/commit/6266363597d2a8f5b0929c6e41446f7897d5267c

fschulze commented 9 years ago

This was added a while ago (2010-12-09).