Merge pull request #29 from simple-rules/ricl-aws

minor change.
pull/30/head
7z7 7 years ago committed by GitHub
commit 39fd36e224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      aws-experiment-launch/create_and_deploy.py

@ -15,7 +15,7 @@ REGION_HUMAN_NAME = 'region_human_name'
INSTANCE_TYPE = 't2.micro' INSTANCE_TYPE = 't2.micro'
REGION_AMI = 'region_ami' REGION_AMI = 'region_ami'
# USER_DATA = 'user-data.sh' # USER_DATA = 'user-data.sh'
# UserData must be base64 encoded. # UserData must be base64 encoded for spot instances.
with open("user-data.sh", "rb") as userdata_file: with open("user-data.sh", "rb") as userdata_file:
USER_DATA = base64.b64encode(userdata_file.read()) USER_DATA = base64.b64encode(userdata_file.read())
@ -352,6 +352,6 @@ if __name__ == "__main__":
region_number = region_list[i] region_number = region_list[i]
number_of_instances = instances_list[i] number_of_instances = instances_list[i]
session = run_one_region_instances( session = run_one_region_instances(
config, region_number, number_of_instances, False) config, region_number, number_of_instances)
results = launch_code_deploy(region_list, commitId) results = launch_code_deploy(region_list, commitId)
print(results) print(results)

Loading…
Cancel
Save