Skip to content

Commit

Permalink
ec2-option to launch with iam role added
Browse files Browse the repository at this point in the history
  • Loading branch information
amywang718 committed Aug 18, 2014
1 parent 85beeea commit d9f0aac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ec2/h2o-cluster-launch-instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,18 @@
# os.environ['AWS_SECRET_ACCESS_KEY'] = '...'
# os.environ['AWS_SSH_PRIVATE_KEY_FILE'] = '/path/to/private_key.pem'

# Launch EC2 instances with an IAM role
# --------------------------------------
#
iam_profile_resource_name = None
# or
iam_profile_name = None

# Options you MUST tailor to your own AWS account.
# ------------------------------------------------

# SSH key pair name.
keyName = '0xdata_Big'
keyName = '0xdata_Big'

# AWS security group name.
# Note:
Expand Down Expand Up @@ -103,6 +109,8 @@ def botoVersionMismatch():
key_name=keyName,
instance_type=instanceType,
security_groups=[securityGroupName],
instance_profile_arn=iam_profile_resource_name,
instance_profile_name=iam_profile_name,
dry_run=dryRun
)

Expand Down

0 comments on commit d9f0aac

Please sign in to comment.