Skip to content

Commit

Permalink
PLFM-8554: Create CNAME for production Synapse Docker registry (#1272)
Browse files Browse the repository at this point in the history
* PLFM-8554: Add friendly CNAME to LB for dev' Synapse docker registry

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* PLFM-8554: Add friendly CNAME to LB for dev' Synapse docker registry

* PLFM-8554: Add friendly CNAME to LB for dev' Synapse docker registry

* PLFM-8554: use dev-docker-registry as dev CNAME

* PLFM-8554: Updating dev' endpoint to docker-staging.dev.sagebase.org, as rewuired by Synapse

* PLFM-8554: Add production CNAME for Docker registry

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
brucehoff and pre-commit-ci[bot] authored Nov 4, 2024
1 parent d585c45 commit 09b5376
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions org-formation/800-redirects/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,20 @@ SynapseDockerRegistryDevDnsForward:
SourceHostedZoneId: Z28CDXGXBHW4TT
# the value of the CNAME record
TargetHostName: !CopyValue ['registry-dev-DockerFargateStack-LoadBalancerDNS', !Ref SynapseDevAccount]

# forward docker.synapse.org to prod' Synapse Docker registry ALB
SynapseDockerRegistryProdDnsForward:
Type: update-stacks
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.6.9/templates/R53/cname.yaml
StackName: !Sub '${resourcePrefix}-synapse-docker-registry-prod-cname'
StackDescription: Setup a CNAME for synapse-docker-registry prod ALB
DefaultOrganizationBindingRegion: !Ref primaryRegion
DefaultOrganizationBinding:
Account: !Ref SynapseProdAccount
Parameters:
# the name of the CNAME record
SourceHostName: "docker.synapse.org"
# ID of the synapse.org zone (in Synapse prod account)
SourceHostedZoneId: ZHAU99KV4A1WU
# the value of the CNAME record
TargetHostName: !CopyValue ['registry-prod-DockerFargateStack-LoadBalancerDNS', !Ref SynapseProdAccount]

0 comments on commit 09b5376

Please sign in to comment.