Infrastructure as code (Terraform) for the cddo.cabinetoffice.gov.uk domain running on AWS.
cdn is for managing the web presence for CDDO, currently a redirect to gov.uk. CloudFront is used and S3 is the backend origin, Functions are used to handle traffic dynamically and in a scalable way.
The router JavaScript function has several endpoints, for example:
Path | Destination/Result |
---|---|
/.well-known/security.txt /security.txt |
https://vulnerability-reporting.nonprod-service.security.gov.uk/.well-known/security.txt |
/.well-known/status | Should return 200 and not a redirect |
/.well-known/hosting-provider | Should return 200 a link to CloudFront |
/* (where not matched) | https://www.gov.uk/government/organisations/central-digital-and-data-office/ |
The router function has a test suite that can be ran by doing:
cd cdn/functions/router/
npm install
npm test
dns is the management of the Route53 zone and records.
Utilises the aws-route53-parked-govuk-domain Terraform module for parking the email records.