Skip to content

Instantly share code, notes, and snippets.

@yuta-imai
Created October 3, 2014 07:04
Show Gist options
  • Select an option

  • Save yuta-imai/19c7c61d1f6aaeb28b20 to your computer and use it in GitHub Desktop.

Select an option

Save yuta-imai/19c7c61d1f6aaeb28b20 to your computer and use it in GitHub Desktop.
import boto
import boto.ec2
ip_range = [
"10.0.0.100",
"10.0.0.101",
"10.0.0.102",
"10.0.0.103"
]
conn = boto.ec2
for ip in ip_range:
conn.run_instances(
'AMI_ID',
private_ip_address=ip
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment