From e6fbe6ea045fdcb595d9fe4a471db7991e31323d Mon Sep 17 00:00:00 2001 From: "W. Lee Pang" Date: Tue, 20 Oct 2020 22:26:08 -0700 Subject: [PATCH] direct launch buttons to 'latest' pinned templates --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 9a2108a98..65c27d044 100644 --- a/main.py +++ b/main.py @@ -27,14 +27,14 @@ def cfn_button(name, template, enabled=True): cfn_url = template else: s3['object'] = "/".join( - filter(None, [s3.get('prefix'), 'templates', template]) + filter(None, [s3.get('prefix'), 'latest', 'templates', template]) ) cfn_url = "".join([ "https://console.aws.amazon.com/cloudformation/home?#/stacks/new?stackName=", name, "&templateURL=", - "https://s3.amazonaws.com/{bucket}/{object}".format(**s3), + "https://{bucket}.s3.amazonaws.com/{object}".format(**s3), ]) img_src = "/" + "/".join(