Skip to content

Commit

Permalink
[IT-4024] Setup a redirect to sagedpe.org apps (#1295)
Browse files Browse the repository at this point in the history
We had setup a redirect for dev.sagedpe.org as part of work for 
IT-3931 however it was done manually.  This PR will do it with
cloudformation and put it under CI control.
  • Loading branch information
zaro0508 authored Nov 21, 2024
1 parent 45ba5ec commit 5e5699b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions org-formation/800-redirects/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,22 @@ SynapseDockerRegistryProdDnsForward:
SourceHostedZoneId: ZHAU99KV4A1WU
# the value of the CNAME record
TargetHostName: !CopyValue ['registry-prod-DockerFargateStack-LoadBalancerDNS', !Ref SynapseProdAccount]


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

0 comments on commit 5e5699b

Please sign in to comment.