Skip to content

Commit aa3dd85

Browse files
authored
[IT-4498] Setup redirect for apex domain (#1457)
Use S3 and cloudfront to setup a redirect from treat-ad.org to treatad.org
1 parent 178306a commit aa3dd85

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

org-formation/800-redirects/_tasks.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,3 +405,21 @@ ModelAdExplorerProdAppDnsForward:
405405
SourceHostedZoneId: "Z038526037U7WWZ1418M6"
406406
# the value of the CNAME record
407407
TargetHostName: !CopyValue ['model-ad-prod-load-balancer-dns', !Ref AgoraProdAccount]
408+
409+
# Issue IT-4498, redirect treat-ad.org to treatad.org
410+
TreatAdApexRedirect:
411+
Type: update-stacks
412+
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.4.8/templates/s3-redirector.yaml
413+
StackName: !Sub '${resourcePrefix}-treatad-redirect'
414+
StackDescription: Setup a redirect from treat-ad.org to treatad.org
415+
DefaultOrganizationBindingRegion: !Ref primaryRegion
416+
DefaultOrganizationBinding:
417+
Account: !Ref SageITAccount
418+
Parameters:
419+
# the endpoint we are redirecting from
420+
SourceHostName: "treat-ad.org"
421+
SourceAcmCertificateArn: "arn:aws:acm:us-east-1:797640923903:certificate/278a1102-c60d-4f51-81c0-6b1ca767945d"
422+
# ID of the sageit.org zone (in sageit account)
423+
SourceHostedZoneId: "Z08344463B10GP0C3L4G6"
424+
# the endpoint we are redirecting to (AWS VPN client self service)
425+
TargetHostName: "treatad.org"

0 commit comments

Comments
 (0)