From d2eb3dd15149edfc3fa819dd0e4c5bc3b51c6f54 Mon Sep 17 00:00:00 2001 From: Khai Do Date: Thu, 18 Sep 2025 13:40:19 -0700 Subject: [PATCH] Revert "[IT-4466] Redirect website (#1464)" This reverts commit 8582f1bfb180e6f0da462dbaea4521df1aa1c7b5. Got the following error on deployment: "www.cancercomplexity.synapse.org already exists" --- org-formation/800-redirects/_tasks.yaml | 14 ----- .../800-redirects/s3-redirect-bucket.yaml | 56 ------------------- 2 files changed, 70 deletions(-) delete mode 100644 org-formation/800-redirects/s3-redirect-bucket.yaml diff --git a/org-formation/800-redirects/_tasks.yaml b/org-formation/800-redirects/_tasks.yaml index 0aebeaf8..6efe944c 100644 --- a/org-formation/800-redirects/_tasks.yaml +++ b/org-formation/800-redirects/_tasks.yaml @@ -422,17 +422,3 @@ TreatAdApexRedirect: TargetDomainName: "treatad.org" AcmCertificateArn: "arn:aws:acm:us-east-1:797640923903:certificate/e8e438c6-8b58-4c39-b63d-d9c2a051e068" RedirectFctName: !Sub '${resourcePrefix}-treatad-apex-redirect-cloudfront-fct' - -# Issue IT-4466, redirect www.cancercomplexity.synapse.org to cancercomplexity.synapse.org -# This requires manually adding a CNAME record in the synapse.org hosted zone -CancerComplexityWebRedirect: - Type: update-stacks - Template: s3-redirect-bucket.yaml - StackName: !Sub '${resourcePrefix}-cancer-complexity-web-redirect' - StackDescription: Setup a redirect from www.cancercomplexity.synapse.org to cancercomplexity.synapse.org - DefaultOrganizationBindingRegion: !Ref primaryRegion - DefaultOrganizationBinding: - Account: !Ref SageITAccount - Parameters: - RedirectFrom: www.cancercomplexity.synapse.org - RedirectTo: cancercomplexity.synapse.org diff --git a/org-formation/800-redirects/s3-redirect-bucket.yaml b/org-formation/800-redirects/s3-redirect-bucket.yaml deleted file mode 100644 index 9dbe03b7..00000000 --- a/org-formation/800-redirects/s3-redirect-bucket.yaml +++ /dev/null @@ -1,56 +0,0 @@ -# Setup a static website bucket for the sole purpose of -# redirecting all request to another website. -AWSTemplateFormatVersion: 2010-09-09 -Description: >- - Provision a S3 website with redirect rules -Parameters: - RedirectFrom: - Description: Domain name of the old website (redirected from) - Type: String - AllowedPattern: (?!-)[a-zA-Z0-9-.]{1,63}(?