Skip to content

Instantly share code, notes, and snippets.

@hdknr
Created October 3, 2009 20:19
Show Gist options
  • Save hdknr/200843 to your computer and use it in GitHub Desktop.
Save hdknr/200843 to your computer and use it in GitHub Desktop.
def create_snapshot(self, volume_id,descripton=""):
"""
by HDKNR.COM
description : some comment or note for a snapshot
http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-CreateSnapshot.html
"""
paramcription = {'VolumeId' : volume_id, 'Description' : description}
return self.get_object('CreateSnapshot', params, Snapshot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment