Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IT-3984] Change redirect for Schematic app #1288

Merged
merged 4 commits into from
Nov 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions org-formation/800-redirects/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ SchematicDevAppDnsForward:
# ID of the api.sagebionetworks.org zone (in sageit account)
SourceHostedZoneId: !CopyValue [!Sub '${primaryRegion}-${resourcePrefix}-sagebio-api-zone-HostedZoneId']
# the value of the CNAME record
TargetHostName: !CopyValue ['schematic-dev-DockerFargateStack-LoadBalancerDNS', !Ref DnTDevAccount]
TargetHostName: !CopyValue ['schematic-dev-load-balancer-dns', !Ref DnTDevAccount]
zaro0508 marked this conversation as resolved.
Show resolved Hide resolved

# forward schematic-staging.api.sagebionetworks.org to schematic-infra ALB
# https://github.com/Sage-Bionetworks/schematic-infra
Expand All @@ -169,6 +169,24 @@ SchematicStagingAppDnsForward:
# the value of the CNAME record
TargetHostName: !CopyValue ['schematic-stage-staging-DockerFargateStack-LoadBalancerDNS', !Ref DCAProdAccount]

# forward schematic-staging.api.sagebionetworks.org to schematic-infra ALB
# https://github.com/Sage-Bionetworks/schematic-infra
SchematicStageAppDnsForward:
Type: update-stacks
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.6.9/templates/R53/cname.yaml
StackName: !Sub '${resourcePrefix}-schematic-stage-cname'
StackDescription: Setup a CNAME for schematic-infra stage ALB
DefaultOrganizationBindingRegion: !Ref primaryRegion
DefaultOrganizationBinding:
Account: !Ref SageITAccount
Parameters:
# the name of the CNAME record
SourceHostName: "schematic-stage.api.sagebionetworks.org"
# ID of the api.sagebionetworks.org zone (in sageit account)
SourceHostedZoneId: !CopyValue [!Sub '${primaryRegion}-${resourcePrefix}-sagebio-api-zone-HostedZoneId']
# the value of the CNAME record
TargetHostName: !CopyValue ['schematic-stage-load-balancer-dns', !Ref DCAProdAccount]

# forward schematic.api.sagebionetworks.org to schematic-infra ALB
# https://github.com/Sage-Bionetworks/schematic-infra
SchematicProdAppDnsForward:
Expand All @@ -185,7 +203,7 @@ SchematicProdAppDnsForward:
# ID of the api.sagebionetworks.org zone (in sageit account)
SourceHostedZoneId: !CopyValue [!Sub '${primaryRegion}-${resourcePrefix}-sagebio-api-zone-HostedZoneId']
# the value of the CNAME record
TargetHostName: !CopyValue ['schematic-prod-DockerFargateStack-LoadBalancerDNS', !Ref DCAProdAccount]
TargetHostName: !CopyValue ['schematic-prod-load-balancer-dns', !Ref DCAProdAccount]
zaro0508 marked this conversation as resolved.
Show resolved Hide resolved

# forward schematic-dev-refactor.api.sagebionetworks.org to schematic-infra ALB
# https://github.com/Sage-Bionetworks/schematic-infra
Expand Down
Loading