Skip to content

Commit 0354217

Browse files
committed
[IT-4498] Another attempt at redirect for apex domain (#1459)
This reverts commit 9129a0a. This is a 2nd attempt at PR #1457 with a fix to the s3-redirector.yaml template. depends on Sage-Bionetworks/aws-infra#435
1 parent 9129a0a commit 0354217

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.10.3/templates/S3/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)