Skip to content

Commit 0a8d8d7

Browse files
authored
[NDR-244] Remove API key requirement from mTLS gateway (#457)
* NDR-244 Remove API key requirement from mTLS gateway * NDR-244 Set API key requirement to false for mTLS gateway * NDR-244 Set API key requirement to false for mTLS gateway GET * NDR-244 Remove api key var as defualts to false * NDR-244 tf fmt
1 parent c22391b commit 0a8d8d7

File tree

3 files changed

+4
-23
lines changed

3 files changed

+4
-23
lines changed

infrastructure/api-key-pdm.tf

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

infrastructure/gateway-document-reference-mtls.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ module "fhir_document_reference_mtls_gateway" {
44
parent_id = aws_api_gateway_rest_api.ndr_doc_store_api_mtls.root_resource_id
55
http_methods = ["POST", "GET"]
66
authorization = "NONE"
7-
api_key_required = true
87
gateway_path = "DocumentReference"
98
require_credentials = true
109
}

infrastructure/lambda-get-document-fhir.tf

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ resource "aws_api_gateway_method" "get_document_reference" {
2222
}
2323

2424
resource "aws_api_gateway_method" "get_document_reference_mtls" {
25-
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api_mtls.id
26-
resource_id = aws_api_gateway_resource.get_document_reference_mtls.id
27-
http_method = "GET"
28-
authorization = "NONE"
29-
api_key_required = true
25+
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api_mtls.id
26+
resource_id = aws_api_gateway_resource.get_document_reference_mtls.id
27+
http_method = "GET"
28+
authorization = "NONE"
3029
request_parameters = {
3130
"method.request.path.id" = true
3231
}

0 commit comments

Comments
 (0)