Commit f3fb93bf by Feanil Patel

Change how we get the s3 url for the template.

parent 1e12d20a
......@@ -32,7 +32,8 @@ def upload_file(file_path, bucket_name, key_name):
key.set_contents_from_filename(file_path)
key.set_acl('public-read')
url = key.generate_url(300, query_auth=False)
url = "https://s3.amazonaws.com/{}/{}".format(bucket.name, key.name)
print( "URL: {}".format(url))
return url
def create_stack(stack_name, template, region='us-east-1', blocking=True,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment