Skip to content

Commit c1dde59

Browse files
committed
Add PDM table to GET and Search
1 parent 334a6bf commit c1dde59

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

infrastructure/lambda-get-document-fhir.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ module "get-doc-fhir-lambda" {
5555
WORKSPACE = terraform.workspace
5656
ENVIRONMENT = var.environment
5757
PRESIGNED_ASSUME_ROLE = aws_iam_role.get_fhir_doc_presign_url_role.arn
58-
LLOYD_GEORGE_DYNAMODB_NAME = "${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}"
58+
LLOYD_GEORGE_DYNAMODB_NAME = module.lloyd_george_reference_dynamodb_table.table_name
59+
PDM_DYNAMODB_NAME = module.pdm_dynamodb_table.table_name
5960
OIDC_CALLBACK_URL = contains(["prod"], terraform.workspace) ? "https://${var.domain}/auth-callback" : "https://${terraform.workspace}.${var.domain}/auth-callback"
6061
CLOUDFRONT_URL = module.cloudfront-distribution-lg.cloudfront_url
6162
PDS_FHIR_IS_STUBBED = local.is_sandbox
@@ -83,4 +84,5 @@ resource "aws_lambda_permission" "lambda_permission_get_mtls_api" {
8384
# The "/*/*" portion grants access from any method on any resource
8485
# within the API Gateway REST API.
8586
source_arn = "${aws_api_gateway_rest_api.ndr_doc_store_api_mtls.execution_arn}/*/*"
86-
}
87+
}
88+

infrastructure/lambda-search-document-references-fhir.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module "search-document-references-fhir-lambda" {
2020
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
2121
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
2222
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
23-
DYNAMODB_TABLE_LIST = "[\u0022${terraform.workspace}_${var.docstore_dynamodb_table_name}\u0022, \u0022${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}\u0022]"
23+
DYNAMODB_TABLE_LIST = "[\u0022${module.pdm_dynamodb_table.table_name}\u0022, \u0022${module.lloyd_george_reference_dynamodb_table.table_name}\u0022]"
2424
DOCUMENT_RETRIEVE_ENDPOINT_APIM = "${local.apim_api_url}/DocumentReference"
2525
WORKSPACE = terraform.workspace
2626
}
@@ -50,4 +50,5 @@ resource "aws_lambda_permission" "lambda_permission_search_mtls_api" {
5050
# The "/*/*" portion grants access from any method on any resource
5151
# within the API Gateway REST API.
5252
source_arn = "${aws_api_gateway_rest_api.ndr_doc_store_api_mtls.execution_arn}/*/*"
53-
}
53+
}
54+

0 commit comments

Comments
 (0)