Skip to content

Commit d2ca393

Browse files
committed
NDR-164 Add gateway methods
1 parent 033ec84 commit d2ca393

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

infrastructure/api-mtls.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ resource "aws_api_gateway_deployment" "mtls_api_deploy" {
4444
rest_api_id = aws_api_gateway_rest_api.mtls_doc_store_api.id
4545

4646
depends_on = [
47-
aws_api_gateway_resource.mtls_test_lambda
47+
aws_api_gateway_resource.mtls_test_lambda,
48+
module.fhir_document_reference_gateway_mtls
4849
]
4950

5051
lifecycle {

infrastructure/buckets.tf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,9 @@ module "s3bucket_truststore" {
121121
source = "./modules/s3"
122122
access_logs_enabled = local.is_production
123123
access_logs_bucket_id = local.access_logs_bucket_id
124-
bucket_name = var.staging_store_bucket_name
124+
bucket_name = var.trustore_bucket_name
125125
environment = var.environment
126126
owner = var.owner
127-
128-
# aws_account_id = var.aws_account_id
129-
# project = var.project
130-
# region = var.region
131127
}
132128

133129
# Lifecycle Rules
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module "fhir_document_reference_gateway_mtls" {
2+
count = local.is_production ? 0 : 1
3+
source = "./modules/gateway"
4+
api_gateway_id = aws_api_gateway_rest_api.mtls_doc_store_api.id
5+
parent_id = aws_api_gateway_rest_api.mtls_doc_store_api.root_resource_id
6+
http_methods = ["POST", "GET"]
7+
authorization = "NONE"
8+
api_key_required = true
9+
gateway_path = "FhirDocumentReference"
10+
require_credentials = true
11+
}

0 commit comments

Comments
 (0)