This is a Terraform module for deploying a Next.js application built with OpenNext.
The example app in example/
is deployed using the latest version of this Terraform module to terraform-aws-opennext.tools.engineering.england.nhs.uk.
Copy and paste the following into your Terraform configuration, edit the variables, and then run terraform init
.
module "opennext" {
source = "nhs-england-tools/opennext/aws"
version = "1.0.0" # Use the latest release from https://github.com/nhs-england-tools/terraform-aws-opennext/releases
prefix = "opennext" # Prefix for all created resources
opennext_build_path = "../.open-next" # Path to your .open-next folder
hosted_zone_id = data.aws_route53_zone.zone.zone_id # The Route53 hosted zone ID for your domain name
cloudfront = {
aliases = [local.domain_name] # Your domain name
acm_certificate_arn = aws_acm_certificate_validation.ssl_certificate.certificate_arn # The ACM (SSL) certificate for your domain
}
}
The following software packages or their equivalents are expected to be installed
- Terraform (>=1.5)
After a successful installation, provide an informative example of how this project can be used. Additional code snippets, screenshots and demos work well in this space. You may also link to the other documentation resources, e.g. the User Guide to demonstrate more use cases and to show more features.
The C4 model is a simple and intuitive way to create software architecture diagrams that are clear, consistent, scalable and most importantly collaborative. This should result in documenting all the system interfaces, external dependencies and integration points.
Most of the projects are built with customisability and extendability in mind. At a minimum, this can be achieved by implementing service level configuration options and settings. The intention of this section is to show how this can be used. If the system processes data, you could mention here for example how the input is prepared for testing - anonymised, synthetic or live data.
Describe or link templates on how to raise an issue, feature request or make a contribution to the codebase. Reference the other documentation files, like
- Environment setup for contribution, i.e.
CONTRIBUTING.md
- Coding standards, branching, linting, practices for development and testing
- Release process, versioning, changelog
- Backlog, board, roadmap, ways of working
- High-level requirements, guiding principles, decision records, etc.
Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation.
Any HTML or Markdown documentation is © Crown Copyright and available under the terms of the Open Government Licence v3.0.