Skip to content

Commit 5040049

Browse files
authored
[NDR-333] Allow FHIR lambdas access to the core dynamodb table (#529)
1 parent 8ef1436 commit 5040049

File tree

6 files changed

+12
-2
lines changed

6 files changed

+12
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ As this repository is a standalone infrastructure there is no python/node based
2929
git config core.hooksPath .githooks
3030
```
3131

32-
Pre-commits will run on any commit. This will build docs and format the terraform.
32+
Pre-commits will run on all commits. This will build docs and format the terraform.

infrastructure/backup-cross-account.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ resource "aws_backup_selection" "cross_account_backup_selection" {
6060
module.bulk_upload_report_dynamodb_table.dynamodb_table_arn,
6161
module.statistical-reports-store.bucket_arn,
6262
module.pdm_dynamodb_table.dynamodb_table_arn,
63-
module.pdm-document-store.bucket_arn
63+
module.pdm-document-store.bucket_arn,
64+
module.core_dynamodb_table.dynamodb_table_arn,
6465
]
6566
}
6667

infrastructure/lambda-document-upload-check.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ module "document_upload_check_lambda" {
1212
module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document,
1313
module.pdm_dynamodb_table.dynamodb_read_policy_document,
1414
module.pdm_dynamodb_table.dynamodb_write_policy_document,
15+
module.core_dynamodb_table.dynamodb_read_policy_document,
16+
module.core_dynamodb_table.dynamodb_write_policy_document,
1517
data.aws_iam_policy.aws_lambda_vpc_access_execution_role.policy
1618
]
1719
kms_deletion_window = var.kms_deletion_window

infrastructure/lambda-get-document-fhir.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module "get-doc-fhir-lambda" {
4040
module.ndr-app-config.app_config_policy,
4141
module.lloyd_george_reference_dynamodb_table.dynamodb_read_policy_document,
4242
module.pdm_dynamodb_table.dynamodb_read_policy_document,
43+
module.core_dynamodb_table.dynamodb_read_policy_document,
4344
aws_iam_policy.ssm_access_policy.policy,
4445
module.ndr-lloyd-george-store.s3_read_policy_document,
4546
module.pdm-document-store.s3_read_policy_document,
@@ -66,6 +67,7 @@ module "get-doc-fhir-lambda" {
6667
aws_api_gateway_method.get_document_reference,
6768
module.pdm_dynamodb_table,
6869
module.lloyd_george_reference_dynamodb_table,
70+
module.core_dynamodb_table,
6971
]
7072
}
7173

infrastructure/lambda-post-document-fhir.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module "post-document-references-fhir-lambda" {
66
module.document_reference_dynamodb_table.dynamodb_write_policy_document,
77
module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document,
88
module.pdm_dynamodb_table.dynamodb_write_policy_document,
9+
module.core_dynamodb_table.dynamodb_write_policy_document,
910
module.ndr-bulk-staging-store.s3_write_policy_document,
1011
module.ndr-app-config.app_config_policy,
1112
aws_iam_policy.ssm_access_policy.policy
@@ -30,6 +31,7 @@ module "post-document-references-fhir-lambda" {
3031

3132
depends_on = [
3233
module.pdm_dynamodb_table,
34+
module.core_dynamodb_table,
3335
module.lloyd_george_reference_dynamodb_table,
3436
]
3537
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ module "search-document-references-fhir-lambda" {
99
module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document,
1010
module.pdm_dynamodb_table.dynamodb_read_policy_document,
1111
module.pdm_dynamodb_table.dynamodb_write_policy_document,
12+
module.core_dynamodb_table.dynamodb_read_policy_document,
13+
module.core_dynamodb_table.dynamodb_write_policy_document,
1214
module.ndr-lloyd-george-store.s3_read_policy_document,
1315
module.ndr-document-store.s3_read_policy_document,
1416
module.ndr-app-config.app_config_policy
@@ -31,6 +33,7 @@ module "search-document-references-fhir-lambda" {
3133
module.search-document-references-gateway,
3234
module.ndr-app-config,
3335
module.pdm_dynamodb_table,
36+
module.core_dynamodb_table,
3437
module.lloyd_george_reference_dynamodb_table,
3538
]
3639
}

0 commit comments

Comments
 (0)