Skip to content

Commit c7ee43b

Browse files
authored
[NDR-271] Add PDM to virus check (#455)
1 parent f733b33 commit c7ee43b

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

infrastructure/lambda-document-upload-check.tf

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,24 @@ module "document_upload_check_lambda" {
66
module.ndr-bulk-staging-store.s3_read_policy_document,
77
module.ndr-bulk-staging-store.s3_write_policy_document,
88
module.ndr-lloyd-george-store.s3_write_policy_document,
9+
module.pdm-document-store.s3_write_policy_document,
910
aws_iam_policy.ssm_access_policy.policy,
1011
module.lloyd_george_reference_dynamodb_table.dynamodb_read_policy_document,
1112
module.lloyd_george_reference_dynamodb_table.dynamodb_write_policy_document,
13+
module.pdm_dynamodb_table.dynamodb_read_policy_document,
14+
module.pdm_dynamodb_table.dynamodb_write_policy_document,
1215
data.aws_iam_policy.aws_lambda_vpc_access_execution_role.policy
1316
]
1417
kms_deletion_window = var.kms_deletion_window
1518
rest_api_id = null
1619
http_methods = null
1720
api_execution_arn = null
1821
lambda_environment_variables = {
19-
LLOYD_GEORGE_DYNAMODB_NAME = "${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}"
20-
STAGING_STORE_BUCKET_NAME = "${terraform.workspace}-${var.staging_store_bucket_name}"
21-
LLOYD_GEORGE_BUCKET_NAME = "${terraform.workspace}-${var.lloyd_george_bucket_name}"
22+
LLOYD_GEORGE_DYNAMODB_NAME = module.lloyd_george_reference_dynamodb_table.table_name
23+
PDM_DYNAMODB_NAME = module.pdm_dynamodb_table.table_name
24+
STAGING_STORE_BUCKET_NAME = module.ndr-bulk-staging-store.bucket_id
25+
LLOYD_GEORGE_BUCKET_NAME = module.ndr-lloyd-george-store.bucket_id
26+
PDM_BUCKET_NAME = module.pdm-document-store.bucket_id
2227
WORKSPACE = terraform.workspace
2328
VIRUS_SCAN_STUB = !local.is_production
2429

0 commit comments

Comments
 (0)