Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit e6fbe6e

Browse files
committed
direct launch buttons to 'latest' pinned templates
1 parent 783253f commit e6fbe6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ def cfn_button(name, template, enabled=True):
2727
cfn_url = template
2828
else:
2929
s3['object'] = "/".join(
30-
filter(None, [s3.get('prefix'), 'templates', template])
30+
filter(None, [s3.get('prefix'), 'latest', 'templates', template])
3131
)
3232

3333
cfn_url = "".join([
3434
"https://console.aws.amazon.com/cloudformation/home?#/stacks/new?stackName=",
3535
name,
3636
"&templateURL=",
37-
"https://s3.amazonaws.com/{bucket}/{object}".format(**s3),
37+
"https://{bucket}.s3.amazonaws.com/{object}".format(**s3),
3838
])
3939

4040
img_src = "/" + "/".join(

0 commit comments

Comments
 (0)