Skip to content

Instantly share code, notes, and snippets.

@garnaat
Created May 18, 2011 12:56
Show Gist options
  • Save garnaat/978523 to your computer and use it in GitHub Desktop.
Save garnaat/978523 to your computer and use it in GitHub Desktop.
Builds on https://gist.github.com/978465 by showing a few instance features
# Assumes that https://gist.github.com/978465 has already been run. Not stand-alone
# grab an Elastic IP address
address = conn.allocate_address()
# now associate with my instance
instance.use_ip(address)
# now turn on monitoring
instance.monitor()
# now associate a tag with the instance
instance.add_tag(key='os_type', value='maverick')
instance.add_tag(key='demo')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment