Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an EBS volume from an EBS snapshot #4

Closed
natea opened this issue Feb 11, 2010 · 2 comments
Closed

Create an EBS volume from an EBS snapshot #4

natea opened this issue Feb 11, 2010 · 2 comments

Comments

@natea
Copy link
Contributor

natea commented Feb 11, 2010

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
Copy link
Contributor Author

natea commented Mar 3, 2010

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

@fschulze
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants