Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
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
16 changes: 16 additions & 0 deletions org-formation/100-shared-dns/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,19 @@ SagebioApiZoneAcmCertificate:
- !Ref GenieProdAccount
Parameters:
DnsDomainName: "api.sagebionetworks.org"

# Wildcard certificate for '*.synapse.org'
SynapseOrgZoneAcmCertificate:
Type: update-stacks
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.6.8/templates/acm-certificate.yaml
StackName: !Sub '${resourcePrefix}-synapse-org-cert'
StackDescription: Create a wildcard certificate for synapse org domains
DefaultOrganizationBindingRegion: !Ref primaryRegion
DefaultOrganizationBinding:
# We need a copy of this certificate in every account where it will be used
# Each certificate needs to be manually verified
Account:
- !Ref DnTDevAccount
- !Ref DpeProdAccount
Parameters:
DnsDomainName: "synapse.org"
16 changes: 16 additions & 0 deletions org-formation/800-redirects/_tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,22 @@ SynapseDockerRegistryProdDnsForward:
# the value of the CNAME record
TargetHostName: !CopyValue ['registry-prod-DockerFargateStack-LoadBalancerDNS', !Ref SynapseProdAccount]

# forward docker.synapse.org to prod' Synapse Docker registry ALB
SynapseMCPDevDnsForward:
Type: update-stacks
Template: https://raw.githubusercontent.com/Sage-Bionetworks/aws-infra/v0.6.9/templates/R53/cname.yaml
StackName: !Sub '${resourcePrefix}-synapse-mcp-dev-cname'
StackDescription: Setup a CNAME for snypase-mcp-server dev ALB
DefaultOrganizationBindingRegion: !Ref primaryRegion
DefaultOrganizationBinding:
Account: !Ref SynapseProdAccount
Parameters:
# the name of the CNAME record
SourceHostName: "mcp-dev.synapse.org"
# ID of the synapse.org zone (in Synapse prod account)
SourceHostedZoneId: ZHAU99KV4A1WU
# the value of the CNAME record
TargetHostName: "synaps-AppLo-eUrDchB5Y55d-1276030746.us-east-1.elb.amazonaws.com"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe reference an output like docker above (in case you redeploy)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I swapped over to !CopyValue ['synapse-mcp-dev-load-balancer-dns', !Ref DnTDevAccount]

image


# 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
Expand Down