Skip to content

Commit 81ee2a4

Browse files
authored
[PRMP-831] Get review functionality by ODS in the review table (#538)
Signed-off-by: NogaNHS <[email protected]>
1 parent c7dfdc8 commit 81ee2a4

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

infrastructure/lambda-get-report-by-ods.tf

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ module "get-report-by-ods-lambda" {
5858
module.ndr-app-config.app_config_policy,
5959
module.statistical-reports-store.s3_write_policy_document,
6060
module.lloyd_george_reference_dynamodb_table.dynamodb_read_policy_document,
61+
module.document_upload_review_dynamodb_table.dynamodb_read_policy_document
6162
]
6263
kms_deletion_window = var.kms_deletion_window
6364
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
@@ -67,13 +68,14 @@ module "get-report-by-ods-lambda" {
6768
lambda_timeout = 900
6869
api_execution_arn = aws_api_gateway_rest_api.ndr_doc_store_api.execution_arn
6970
lambda_environment_variables = {
70-
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
71-
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
72-
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
73-
LLOYD_GEORGE_DYNAMODB_NAME = "${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}"
74-
STATISTICAL_REPORTS_BUCKET = "${terraform.workspace}-${var.statistical_reports_bucket_name}"
75-
PRESIGNED_ASSUME_ROLE = aws_iam_role.ods_report_presign_url_role.arn
76-
WORKSPACE = terraform.workspace
71+
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
72+
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
73+
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
74+
LLOYD_GEORGE_DYNAMODB_NAME = "${terraform.workspace}_${var.lloyd_george_dynamodb_table_name}"
75+
STATISTICAL_REPORTS_BUCKET = "${terraform.workspace}-${var.statistical_reports_bucket_name}"
76+
DOCUMENT_REVIEW_DYNAMODB_NAME = module.document_upload_review_dynamodb_table.table_name
77+
PRESIGNED_ASSUME_ROLE = aws_iam_role.ods_report_presign_url_role.arn
78+
WORKSPACE = terraform.workspace
7779
}
7880
depends_on = [
7981
aws_api_gateway_rest_api.ndr_doc_store_api,

0 commit comments

Comments
 (0)