Skip to content

Commit f14e396

Browse files
2 parents 69198ff + 4019c5b commit f14e396

File tree

14 files changed

+100
-326
lines changed

14 files changed

+100
-326
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!-- markdownlint-disable-next-line first-line-heading -->
2+
## Overview
3+
4+
**Jira ticket**: [TBC](https://nhsd-jira.digital.nhs.uk/browse/XXX)
5+
6+
### Description
7+
8+
<!-- Describe your changes in detail. -->
9+
10+
### Context
11+
12+
<!-- Why is this change required? What problem does it solve? -->
13+
14+
## Checklist
15+
16+
<!--
17+
18+
Put an `x` in the completed tasks.
19+
20+
If a task is not relevant, `x` it, then strike through the text e.g.:
21+
- [x] ~~This task is not relevant.~~
22+
23+
-->
24+
25+
Tasks for all changes:
26+
27+
- [ ] 1. I have linked this PR to its Jira ticket.
28+
- [ ] 2. I have run git pre-commits.
29+
- [ ] 3. I have updated relevant documentation.
30+
- [ ] 4. I have considered the cross-team impact (and have PR approval from both Core & Demographics if necessary).
31+
- [ ] 5. I have successfully [deployed this change to a sandbox](https://github.com/NHSDigital/national-document-repository-infrastructure/actions/workflows/deploy-sandbox.yml) and witnessed it build: [Workflow run: TBC](https://github.com/NHSDigital/national-document-repository-infrastructure/actions/runs/XXX)
32+
- [ ] 6. I have checked the Terraform Plan from this PR against `ndr-dev`.

.github/workflows/automated-pr-validator.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: "Z-AUTOMATED: PR Validator"
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, reopened]
5+
types: [opened, synchronize, reopened, edited]
6+
7+
permissions: {}
68

79
jobs:
810
sbom_scan:
@@ -120,3 +122,23 @@ jobs:
120122
BRANCH_NAME=${{ github.event.repository.default_branch }}
121123
chmod +x scripts/markdown-validator.sh
122124
scripts/markdown-validator.sh
125+
126+
checklist_validator:
127+
name: Checklist Validation
128+
runs-on: ubuntu-latest
129+
permissions:
130+
contents: read
131+
steps:
132+
- name: Checkout repository
133+
uses: actions/checkout@v5
134+
135+
- name: Set up Python 3.11
136+
uses: actions/setup-python@v6
137+
with:
138+
python-version: 3.11
139+
140+
- name: Run checklist validator
141+
run: |
142+
python3 scripts/github/checklist_validator/main.py
143+
env:
144+
PR_BODY: ${{ github.event.pull_request.body }}

.github/workflows/cron-daily-health-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ jobs:
119119
runTests: false
120120
build: npm run build
121121
working-directory: ./app
122+
123+
- name: Copy main.html to index.html for serve compatibility
124+
run: cp ./dist/main.html ./dist/index.html
125+
working-directory: ./app
122126

123127
- name: npm install serve -g
124128
run: npm install serve -g

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ tfplan
3636
.idea/
3737
.vscode/
3838
venv/
39+
40+
#Ignore certificates
41+
scripts/csrs
42+
scripts/keys

infrastructure/cloudfront.tf

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -154,16 +154,3 @@ resource "aws_cloudfront_cache_policy" "nocache" {
154154
}
155155
}
156156
}
157-
# module "cloudfront-distribution-lg" {
158-
# source = "./modules/cloudfront"
159-
# bucket_domain_name = module.ndr-lloyd-george-store.bucket_regional_domain_name
160-
# bucket_id = module.ndr-lloyd-george-store.bucket_id
161-
# qualifed_arn = module.edge-presign-lambda.qualified_arn
162-
# depends_on = [module.edge-presign-lambda.qualified_arn, module.ndr-lloyd-george-store.bucket_id, module.ndr-lloyd-george-store.bucket_domain_name, module.ndr-document-pending-review-store.bucket_id, module.ndr-document-pending-review-store.bucket_domain_name]
163-
# web_acl_id = try(module.cloudfront_firewall_waf_v2[0].arn, "")
164-
# has_secondary_bucket = local.is_production ? false : true
165-
# secondary_bucket_domain_name = module.ndr-document-pending-review-store.bucket_regional_domain_name
166-
# secondary_bucket_id = module.ndr-document-pending-review-store.bucket_id
167-
# secondary_bucket_path_pattern = "review/*"
168-
# log_bucket_id = local.access_logs_bucket_id
169-
# }

infrastructure/lambda-edge-presign.tf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,14 @@ module "edge-presign-lambda" {
7979
providers = {
8080
aws = aws.us_east_1
8181
}
82-
bucket_names = [module.ndr-lloyd-george-store.bucket_id, module.ndr-document-pending-review-store.bucket_id, module.ndr-bulk-staging-store.bucket_id]
83-
table_name = module.cloudfront_edge_dynamodb_table.table_name
82+
bucket_names = [
83+
module.ndr-lloyd-george-store.bucket_id,
84+
module.ndr-document-pending-review-store.bucket_id,
85+
module.ndr-bulk-staging-store.bucket_id
86+
]
87+
table_name = module.cloudfront_edge_dynamodb_table.table_name
8488
}
8589

86-
87-
8890
resource "aws_iam_policy" "staging_bucket_put" {
8991
name = "${terraform.workspace}_staging_bucket_put"
9092
policy = jsonencode({

infrastructure/modules/cloudfront/README.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

infrastructure/modules/cloudfront/main.tf

Lines changed: 0 additions & 184 deletions
This file was deleted.

infrastructure/modules/cloudfront/output.tf

Lines changed: 0 additions & 8 deletions
This file was deleted.

infrastructure/modules/cloudfront/provider.tf

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)