Skip to content

Commit 0602890

Browse files
committed
More tweaks
1 parent fab0b56 commit 0602890

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

infrastructure/api.tf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Create Document Store API
22
resource "aws_api_gateway_rest_api" "ndr_doc_store_api" {
3-
name = "${terraform.workspace}-DocStoreAPI"
4-
description = "Document store API for Repo"
3+
name = "${terraform.workspace}-DocStoreAPI"
4+
description = "Document store API for Repo"
5+
disable_execute_api_endpoint = true
56

67
tags = {
78
Name = "${terraform.workspace}-docstore-api"
@@ -11,10 +12,11 @@ resource "aws_api_gateway_rest_api" "ndr_doc_store_api" {
1112
resource "aws_api_gateway_domain_name" "custom_api_domain" {
1213
domain_name = local.api_gateway_full_domain_name
1314
regional_certificate_arn = module.ndr-ecs-fargate-app.certificate_arn
14-
security_policy = "SecurityPolicy_TLS13_1_3_2025_09"
15+
security_policy = "SecurityPolicy_TLS13_2025_EDGE"
16+
endpoint_access_mode = "BASIC"
1517

1618
endpoint_configuration {
17-
types = ["REGIONAL"]
19+
types = ["EDGE"]
1820
}
1921
}
2022

infrastructure/api_mtls.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ resource "aws_api_gateway_rest_api" "ndr_doc_store_api_mtls" {
1616
resource "aws_api_gateway_domain_name" "custom_api_domain_mtls" {
1717
domain_name = local.mtls_api_gateway_full_domain_name
1818
regional_certificate_arn = aws_acm_certificate_validation.mtls_api_gateway_cert.certificate_arn
19-
security_policy = "SecurityPolicy_TLS13_1_3_2025_09"
19+
security_policy = "SecurityPolicy_TLS13_1_3_FIPS_2025_09"
20+
endpoint_access_mode = "BASIC"
2021

2122
endpoint_configuration {
2223
types = ["REGIONAL"]

scripts/cleanup_sandboxes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
def trigger_delete_workflow(token: str, sandbox: str):
88
owner = "NHSDigital"
99
repo = "national-document-repository-infrastructure"
10-
workflow = "tear-down-sandbox.yml"
10+
workflow_id = "tear-down-sandbox.yml"
1111

12-
url = f"https://api.github.com/repos/{owner}/{repo}/actions/workflows/{workflow}/dispatches"
12+
url = f"https://api.github.com/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"
1313
headers = {
1414
"Accept": "application/vnd.github+json",
1515
"Authorization": f"Bearer {token}",
16-
"X-GitHub-Api-Version": "2022-11-28",
16+
"X-GitHub-Api-Version": "2026-03-10",
1717
}
1818

1919
inputs = {

0 commit comments

Comments
 (0)