File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,14 +18,19 @@ module "post-document-references-fhir-lambda" {
1818 APPCONFIG_APPLICATION = module.ndr- app- config.app_config_application_id
1919 APPCONFIG_ENVIRONMENT = module.ndr- app- config.app_config_environment_id
2020 APPCONFIG_CONFIGURATION = module.ndr- app- config.app_config_configuration_profile_id
21- DOCUMENT_STORE_DYNAMODB_NAME = " ${ terraform . workspace } _ ${ var . docstore_dynamodb_table_name } "
22- LLOYD_GEORGE_DYNAMODB_NAME = " ${ terraform . workspace } _ ${ var . lloyd_george_dynamodb_table_name } "
21+ LLOYD_GEORGE_DYNAMODB_NAME = module.lloyd_george_reference_dynamodb_table.table_name
22+ PDM_DYNAMODB_NAME = module.pdm_dynamodb_table.table_name
2323 STAGING_STORE_BUCKET_NAME = " ${ terraform . workspace } -${ var . staging_store_bucket_name } "
2424 DOCUMENT_RETRIEVE_ENDPOINT_APIM = " ${ local . apim_api_url } /DocumentReference"
2525 PDS_FHIR_IS_STUBBED = local.is_sandbox
2626 WORKSPACE = terraform.workspace
2727 PRESIGNED_ASSUME_ROLE = aws_iam_role.create_post_presign_url_role.arn
2828 }
29+
30+ depends_on = [
31+ module . pdm_dynamodb_table ,
32+ module . lloyd_george_reference_dynamodb_table ,
33+ ]
2934}
3035
3136resource "aws_api_gateway_integration" "post_doc_fhir_lambda_integration" {
@@ -48,4 +53,5 @@ resource "aws_lambda_permission" "lambda_permission_post_mtls_api" {
4853 # The "/*/*" portion grants access from any method on any resource
4954 # within the API Gateway REST API.
5055 source_arn = " ${ aws_api_gateway_rest_api . ndr_doc_store_api_mtls . execution_arn } /*/*"
51- }
56+ }
57+
You can’t perform that action at this time.
0 commit comments