File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Create Document Store API
22resource "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" {
1112resource "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
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ resource "aws_api_gateway_rest_api" "ndr_doc_store_api_mtls" {
1616resource "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" ]
Original file line number Diff line number Diff line change 77def 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 = {
You can’t perform that action at this time.
0 commit comments