Skip to content

Commit 45b8117

Browse files
[PRMP-586] address PR comments
1 parent d063b4d commit 45b8117

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

infrastructure/lambda-get-document-review.tf

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ module "get_document_review_lambda" {
44
handler = "handlers.get_document_review_handler.lambda_handler"
55
iam_role_policy_documents = [
66
module.ndr-app-config.app_config_policy,
7-
module.cloudfront_edge_dynamodb_table.dynamodb_read_policy_document
7+
module.cloudfront_edge_dynamodb_table.dynamodb_read_policy_document,
8+
module.cloudfront_edge_dynamodb_table.dynamodb_write_policy_document
89
]
910

1011
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id
@@ -15,13 +16,13 @@ module "get_document_review_lambda" {
1516
is_gateway_integration_needed = true
1617
is_invoked_from_gateway = true
1718
lambda_environment_variables = {
18-
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
19-
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
20-
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
21-
DOCUMENT_REVIEW_DYNAMO_NAME = ""
22-
EDGE_REFERENCE_TABLE = module.cloudfront_edge_dynamodb_table.table_name
23-
CLOUDFRONT_URL = module.cloudfront-distribution-lg.cloudfront_url
24-
WORKSPACE = terraform.workspace
19+
APPCONFIG_APPLICATION = module.ndr-app-config.app_config_application_id
20+
APPCONFIG_ENVIRONMENT = module.ndr-app-config.app_config_environment_id
21+
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
22+
DOCUMENT_REVIEW_DYNAMODB_NAME = ""
23+
EDGE_REFERENCE_TABLE = module.cloudfront_edge_dynamodb_table.table_name
24+
CLOUDFRONT_URL = module.cloudfront-distribution-lg.cloudfront_url
25+
WORKSPACE = terraform.workspace
2526
}
2627
depends_on = [
2728
aws_api_gateway_rest_api.ndr_doc_store_api,

0 commit comments

Comments
 (0)