Code Monkey home page Code Monkey logo

dns's Introduction

alpha.canada.ca et al

CDS DNS as a Service

With thanks to our friends at 18f for the inspiration, this repository is a collection of Terraform scripts for configuring DNS for domains managed by CDS.

Currently, we are managing:

  • *.cds-snc.ca
  • *cdssandbox.xyz
  • *.alpha.canada.ca.

Why would I need this?

Do you want a pretty URL like notification.alpha.canada.ca for your cool new project? This is how you do that.

Making DNS requests

To request a new subdomain, create a aws_route53_record terraform entry and submit an issue. A member of the Platform team will review the request and either approve it, or circle back with additional questions.

We are investigating how to make this easier, but if anyone wants to help out, please reach out to [email protected]

Examples

Subdomain with a CNAME record directing traffic to a Cloudfront endpoint:

resource "aws_route53_record" "rescheduler-cds-snc-ca-CNAME" {
    zone_id = aws_route53_zone.cds-snc-ca-public.zone_id
    name    = "rescheduler.cds-snc.ca"
    type    = "CNAME"
    records = [
        "d31g0redbbnj2z.cloudfront.net"
    ]
    ttl     = "300"

}

Subdomain with an A record directing traffic to an IP address:

resource "aws_route53_record" "ebrief-cds-snc-ca-A" {
    zone_id = aws_route53_zone.cds-snc-ca-public.zone_id
    name    = "ebrief.cds-snc.ca"
    type    = "A"
    records = [
        "52.237.20.235"
    ]
    ttl     = "300"

}

SNC DNS en tant que service

Avec nos remerciements à nos amis de 18f pour l'inspiration, ce dépôt est une collection de scripts Terraform pour la configuration des DNS pour les domaines gérés par le SNC.

Pour le moment, nous gérons les domaines:

  • *.cds-snc.ca
  • *cdssandbox.xyz
  • *.alpha.canada.ca.

Pourquoi en aurais-je besoin?

Vous voulez une jolie URL comme notification.alpha.canada.ca pour votre nouveau projet ? C'est comme ça qu'il faut faire.

Ajouter des enregistrements DNS

Pour demander un nouveau sous-domaine, créez une entrée Terraform aws_route53_record et soumettez un enjeu (issue). Un membre de l'équipe de la plate-forme examinera la demande et l'approuvera ou reviendra avec des questions supplémentaires.

Exemples

Sous-domaine avec un enregistrement CNAME dirigeant le trafic vers un point de terminaison CloudFront :

resource "aws_route53_record" "rescheduler-cds-snc-ca-CNAME" {
    zone_id = aws_route53_zone.cds-snc-ca-public.zone_id
    name    = "rescheduler.cds-snc.ca"
    type    = "CNAME"
    records = [
        "d31g0redbbnj2z.cloudfront.net"
    ]
    ttl     = "300"

}

Sous-domaine avec un enregistrement A dirigeant le trafic vers une adresse IP :

resource "aws_route53_record" "ebrief-cds-snc-ca-A" {
    zone_id = aws_route53_zone.cds-snc-ca-public.zone_id
    name    = "ebrief.cds-snc.ca"
    type    = "A"
    records = [
        "52.237.20.235"
    ]
    ttl     = "300"

}

dns's People

Contributors

maxneuvians avatar dsamojlenko avatar calvinrodo avatar patheard avatar renovate[bot] avatar obrien-j avatar antoineaugusti avatar sastels avatar sboisvert avatar sre-read-write[bot] avatar gcharest avatar sleepycat avatar jimleroyer avatar ethanwallace avatar bryan-robitaille avatar daine avatar smcmurtry avatar mohdnr avatar omartehsin1 avatar ben851 avatar charlesmorin avatar jzbahrai avatar sylviamclaughlin avatar festivekyle avatar pcraig3 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.