Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Commit

Permalink
Update fabulous.py
Browse files Browse the repository at this point in the history
Boto connect method changed to allow connecting to other AWS availability zones than east default.
  • Loading branch information
jdcaballero committed Oct 2, 2013
1 parent 8818ada commit 5c5359e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fabulous.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from fabulous_conf import *
from cookbook import recipe
import boto
import boto.ec2
import time


Expand Down Expand Up @@ -49,7 +50,8 @@ def _create_server():
Creates EC2 Instance
"""
print(_yellow("Creating instance"))
conn = boto.connect_ec2(ec2_key, ec2_secret)
conn = boto.ec2.connect_to_region(ec2_region, aws_access_key_id=ec2_key, aws_secret_access_key=ec2_secret)

image = conn.get_all_images(ec2_amis)

reservation = image[0].run(1, 1, ec2_keypair, ec2_secgroups,
Expand Down

0 comments on commit 5c5359e

Please sign in to comment.