diff --git a/org-formation/800-redirects/_tasks.yaml b/org-formation/800-redirects/_tasks.yaml index 533b4438..ff248445 100644 --- a/org-formation/800-redirects/_tasks.yaml +++ b/org-formation/800-redirects/_tasks.yaml @@ -405,3 +405,21 @@ ModelAdExplorerProdAppDnsForward: SourceHostedZoneId: "Z038526037U7WWZ1418M6" # the value of the CNAME record TargetHostName: !CopyValue ['model-ad-prod-load-balancer-dns', !Ref AgoraProdAccount] + +# Issue IT-4498, redirect treat-ad.org to treatad.org +TreatAdApexRedirect: + Type: update-stacks + Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.4.8/templates/s3-redirector.yaml + StackName: !Sub '${resourcePrefix}-treatad-redirect' + StackDescription: Setup a redirect from treat-ad.org to treatad.org + DefaultOrganizationBindingRegion: !Ref primaryRegion + DefaultOrganizationBinding: + Account: !Ref SageITAccount + Parameters: + # the endpoint we are redirecting from + SourceHostName: "treat-ad.org" + SourceAcmCertificateArn: "arn:aws:acm:us-east-1:797640923903:certificate/278a1102-c60d-4f51-81c0-6b1ca767945d" + # ID of the sageit.org zone (in sageit account) + SourceHostedZoneId: "Z08344463B10GP0C3L4G6" + # the endpoint we are redirecting to (AWS VPN client self service) + TargetHostName: "treatad.org"