Skip to content

Instantly share code, notes, and snippets.

@mcowger
Created November 6, 2013 01:33
Show Gist options
  • Save mcowger/7329455 to your computer and use it in GitHub Desktop.
Save mcowger/7329455 to your computer and use it in GitHub Desktop.
mapping = BlockDeviceMapping()
for i in range(0,2):
t = BlockDeviceType()
t.virtual_name = 'ephemeral{0}'.format(i)
mapping['/dev/sd{0}'.format(chr(ord('b')+i))] = t
return mapping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment