Managing DNS records #913
jacobwinch
started this conversation in
Architecture Decisions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We recently made it possible for teams to manage their DNS records via code. More specifically, teams can synth the
Guardian::DNS::RecordSet
private resource type via a couple of constructs in@guardian/cdk
.Teams typically need to create a CNAME which points to their load balancer (or API Gateway instance) when provisioning a new application. Due to this, we initially planned to create a CNAME under the hood as part of our standard
GuEc2App
andGuApiLambda
patterns. See #840 for an example of this implementation.However, creating the DNS record as part of the pattern has two major drawbacks:
@guardian/cdk
considerably more complex. As the DNS record for existing applications currently points at a CloudFormed load balancer (or API Gateway instance), it doesn't truly belong to the pattern until the migration is complete. However, we need to manage the DNS record as part of the migration process.Due to these factors, we believe that it will be simplest to manage DNS records via a standalone construct in the same template (see example). The downside of this is that teams will need to add a few lines of extra code when provisioning a new application for the first time.
Beta Was this translation helpful? Give feedback.
All reactions