Skip to content

Commit 8393b7f

Browse files
committed
[PRMP-586] Add S3 read and write policies for document review process
Signed-off-by: NogaNHS <127490765+NogaNHS@users.noreply.github.com>
1 parent d2c514d commit 8393b7f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

infrastructure/lambda-get-document-review.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ module "get_document_review_lambda" {
77
module.cloudfront_edge_dynamodb_table.dynamodb_read_policy_document,
88
module.cloudfront_edge_dynamodb_table.dynamodb_write_policy_document,
99
local.is_production ? "" : module.document_review_dynamodb_table[0].dynamodb_read_policy_document,
10-
aws_iam_policy.ssm_access_policy.policy
10+
aws_iam_policy.ssm_access_policy.policy,
11+
module.ndr-document-pending-review-store.s3_read_policy_document
1112
]
1213

1314
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id

infrastructure/lambda-patch-document-review.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module "patch_document_review_lambda" {
77
local.is_production ? "" : module.document_review_dynamodb_table[0].dynamodb_write_policy_document,
88
local.is_production ? "" : module.document_review_dynamodb_table[0].dynamodb_read_policy_document,
99
aws_iam_policy.ssm_access_policy.policy,
10+
module.ndr-document-pending-review-store.s3_write_policy_document
1011
]
1112

1213
rest_api_id = aws_api_gateway_rest_api.ndr_doc_store_api.id

infrastructure/lambda-search-document-review.tf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ module "search_document_review_lambda" {
2121
APPCONFIG_CONFIGURATION = module.ndr-app-config.app_config_configuration_profile_id
2222
DOCUMENT_REVIEW_DYNAMODB_NAME = local.is_production ? "" : module.document_review_dynamodb_table[0].table_name
2323
WORKSPACE = terraform.workspace
24-
25-
2624
}
2725
depends_on = [
2826
aws_api_gateway_rest_api.ndr_doc_store_api,

infrastructure/modules/s3/iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "aws_iam_policy" "s3_document_data_policy" {
2929
"s3:PutObjectTagging",
3030
"s3:GetObjectVersion",
3131
],
32-
"Resource" : ["${aws_s3_bucket.bucket.arn}/*", "${aws_s3_bucket.bucket.arn}/*"]
32+
"Resource" : ["${aws_s3_bucket.bucket.arn}/*"]
3333
}
3434
]
3535
})

0 commit comments

Comments
 (0)