Skip to content

Commit e131da4

Browse files
committed
Add depends on
1 parent c1dde59 commit e131da4

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

infrastructure/lambda-get-document-fhir.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ module "get-doc-fhir-lambda" {
6161
CLOUDFRONT_URL = module.cloudfront-distribution-lg.cloudfront_url
6262
PDS_FHIR_IS_STUBBED = local.is_sandbox
6363
}
64-
depends_on = [aws_api_gateway_method.get_document_reference]
64+
depends_on = [
65+
aws_api_gateway_method.get_document_reference,
66+
module.pdm_dynamodb_table,
67+
module.lloyd_george_reference_dynamodb_table,
68+
]
6569
}
6670

6771
resource "aws_api_gateway_integration" "get_doc_fhir_lambda_integration" {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ module "search-document-references-fhir-lambda" {
2727
depends_on = [
2828
aws_api_gateway_rest_api.ndr_doc_store_api,
2929
module.search-document-references-gateway,
30-
module.ndr-app-config
30+
module.ndr-app-config,
31+
module.pdm_dynamodb_table,
32+
module.lloyd_george_reference_dynamodb_table,
3133
]
3234
}
3335

0 commit comments

Comments
 (0)