nhs-england-tools / terraform-aws-opennext

🧱 💻 ☁️ A Terraform module for deploying a Next.js application built with OpenNext to AWS
MIT License
75 stars 10 forks source link

Add PriceClass variable so that it is configurable (V2) #20

Closed andylamp closed 4 months ago

andylamp commented 5 months ago

Description

This PR adds a price_class variable so that the respective CDN optimization can be set within the scope of the CloudFront distribution being created. Currently this is not supported and its value is hardcoded to some regions (instead of all).

Additionally, it allows the configuration of the cache policy that the distribution will use as this is currently this is not supported.

This PR addresses these limitations and introduces no breaking changes.

Context

Allow users to adjust the following parameters,

Type of changes

Checklist


Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

andylamp commented 5 months ago

@Tomdango hope that resolves the history issued and this can merged as expected.

Tomdango commented 4 months ago

@andylamp Included the changes in #21 as GitHub still wasn't resolving the Git history properly. Also - one of the requirements of the repository is to have signed commits. Could you setup a GPG key in GitHub and sign your commits into this repository please?