Skip to content

Commit

Permalink
Set up fowarding for Sage DPE staging/prod domain
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Nov 21, 2024
1 parent e4824a7 commit 39b67b7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions org-formation/800-redirects/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,40 @@ SageDpeDevAppDnsForward:
SourceHostedZoneId: "Z04325181I2YIP983P1AD"
# the value of the CNAME record
TargetHostName: "ac5c848ac4ff54e2bb11dd87685375b0-1875694220.us-east-1.elb.amazonaws.com"

# forward staging.sagedpe.org to staging EKS stack ALB in org-sagebase-dpe-prod
# apps are setup with terraform at https://github.com/Sage-Bionetworks-Workflows/eks-stack
SageDpeStagingAppDnsForward:
Type: update-stacks
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.6.9/templates/R53/cname.yaml
StackName: !Sub '${resourcePrefix}-sagedpe-staging-cname'
StackDescription: Setup a CNAME for sagepde.org staging ALB
DefaultOrganizationBindingRegion: !Ref primaryRegion
DefaultOrganizationBinding:
Account: !Ref SageITAccount
Parameters:
# the name of the CNAME record
SourceHostName: "staging.sagedpe.org"
# ID of the sagedpe.org zone (in sageit account)
SourceHostedZoneId: "Z04325181I2YIP983P1AD"
# the value of the CNAME record
TargetHostName: "ae44aad490bd44942875e55a14963d7a-688764136.us-east-1.elb.amazonaws.com"


# forward prod.sagedpe.org to prod EKS stack ALB in org-sagebase-dpe-prod
# apps are setup with terraform at https://github.com/Sage-Bionetworks-Workflows/eks-stack
SageDpeProdAppDnsForward:
Type: update-stacks
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.6.9/templates/R53/cname.yaml
StackName: !Sub '${resourcePrefix}-sagedpe-prod-cname'
StackDescription: Setup a CNAME for sagepde.org prod ALB
DefaultOrganizationBindingRegion: !Ref primaryRegion
DefaultOrganizationBinding:
Account: !Ref SageITAccount
Parameters:
# the name of the CNAME record
SourceHostName: "prod.sagedpe.org"
# ID of the sagedpe.org zone (in sageit account)
SourceHostedZoneId: "Z04325181I2YIP983P1AD"
# the value of the CNAME record
TargetHostName: "aa14266f054574a309d8ec5a2fb2c77c-1977172949.us-east-1.elb.amazonaws.com"

0 comments on commit 39b67b7

Please sign in to comment.