Skip to content

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

Notifications You must be signed in to change notification settings

co-cddo/cddo-domains-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published