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

Commit

Permalink
direct launch buttons to 'latest' pinned templates
Browse files Browse the repository at this point in the history
  • Loading branch information
wleepang committed Oct 21, 2020
1 parent 783253f commit e6fbe6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e6fbe6e

Please sign in to comment.