We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79c82b6 commit 84bf792Copy full SHA for 84bf792
ec2/spark_ec2.py
@@ -58,7 +58,9 @@ def parse_args():
58
"WARNING: must be 64-bit; small instances won't work")
59
parser.add_option("-m", "--master-instance-type", default="",
60
help="Master instance type (leave empty for same as instance-type)")
61
- parser.add_option("-z", "--zone", default="us-east-1b",
+ parser.add_option("-r", "--region", default="us-east-1",
62
+ help="EC2 region zone to launch instances in")
63
+ parser.add_option("-z", "--zone", default="",
64
help="Availability zone to launch instances in")
65
parser.add_option("-a", "--ami", default="latest",
66
help="Amazon Machine Image ID to use, or 'latest' to use latest " +
@@ -438,7 +440,7 @@ def ssh(host, opts, command):
438
440
439
441
def main():
442
(opts, action, cluster_name) = parse_args()
- conn = boto.connect_ec2()
443
+ conn = boto.ec2.connect_to_region(opts.region)
444
445
# Select an AZ at random if it was not specified.
446
if opts.zone == "":
0 commit comments