Skip to content

Commit 9aa42bf

Browse files
Bob Strahangudivt
authored andcommitted
Fix GovCloud console URL for CloudFormation launch links
1 parent ac53d52 commit 9aa42bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/generate_govcloud_template.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,8 @@ def print_deployment_summary(self, bucket_name: str, prefix: str, region: str, s
808808
# 1-Click Launch for standard template
809809
encoded_standard_url = quote(standard_url, safe=":/?#[]@!$&'()*+,;=")
810810
standard_launch_url = f"https://{region}.console.aws.amazon.com/cloudformation/home?region={region}#/stacks/create/review?templateURL={encoded_standard_url}&stackName=IDP"
811+
if "us-gov" in region:
812+
standard_launch_url = f"https://{region}.console.amazonaws-us-gov.com/cloudformation/home?region={region}#/stacks/create/review?templateURL={encoded_standard_url}&stackName=IDP"
811813
print(f"1-Click Launch (creates new stack):")
812814
print(f" {standard_launch_url}")
813815
print(f"Template URL (for updating existing stack):")

0 commit comments

Comments
 (0)