co-cddo / cddo-domains-terraform

Infrastructure as code for the cddo.cabinetoffice.gov.uk domain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cddo-domains-terraform

AWS Terraform Version v1.3.2 Last commit image Deployment status

Infrastructure as code (Terraform) for the cddo.cabinetoffice.gov.uk domain running on AWS.

CloudFront CDN

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

Route53 DNS

dns is the management of the Route53 zone and records.

Utilises the aws-route53-parked-govuk-domain Terraform module for parking the email records.

About

Infrastructure as code for the cddo.cabinetoffice.gov.uk domain


Languages

Language:HTML 46.1%Language:HCL 24.9%Language:JavaScript 24.6%Language:CSS 3.2%Language:Shell 1.3%