From 09b5376b14db2c237d01c80cda06bff8ed1b7c07 Mon Sep 17 00:00:00 2001 From: Bruce Hoff Date: Mon, 4 Nov 2024 00:23:58 -0800 Subject: [PATCH] PLFM-8554: Create CNAME for production Synapse Docker registry (#1272) * 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> --- org-formation/800-redirects/_tasks.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/org-formation/800-redirects/_tasks.yaml b/org-formation/800-redirects/_tasks.yaml index d93aff54..c10645a6 100644 --- a/org-formation/800-redirects/_tasks.yaml +++ b/org-formation/800-redirects/_tasks.yaml @@ -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]