From 6fd9bd1c8e7a65b69a7e89f36862935c4a51e8bd Mon Sep 17 00:00:00 2001 From: pavanchalamalasetti Date: Tue, 25 Sep 2018 17:01:06 +0100 Subject: [PATCH 1/2] upated iam s3 policy to write files into MOJAP-LAND --- infra/terraform/modules/data_upload_user/iam.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infra/terraform/modules/data_upload_user/iam.tf b/infra/terraform/modules/data_upload_user/iam.tf index be4741a2f..a906e17f0 100644 --- a/infra/terraform/modules/data_upload_user/iam.tf +++ b/infra/terraform/modules/data_upload_user/iam.tf @@ -17,7 +17,8 @@ data "aws_iam_policy_document" "system_user_s3_upload_writeonly" { effect = "Allow" resources = [ - "${var.upload_bucket_arn}/${var.org_name}/${var.system_name}/*", + "${var.upload_bucket_arn}/*", + "${var.upload_bucket_arn}/${var.org_name}/${var.system_name}/" ] } } From a413ede10171368bee8ffd6b4996f0e247efcf60 Mon Sep 17 00:00:00 2001 From: pavanchalamalasetti Date: Tue, 25 Sep 2018 17:16:24 +0100 Subject: [PATCH 2/2] upated iam s3 policy to write files into MOJAP-LAND --- infra/terraform/modules/data_upload_user/iam.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/terraform/modules/data_upload_user/iam.tf b/infra/terraform/modules/data_upload_user/iam.tf index a906e17f0..b77f1faf3 100644 --- a/infra/terraform/modules/data_upload_user/iam.tf +++ b/infra/terraform/modules/data_upload_user/iam.tf @@ -18,7 +18,7 @@ data "aws_iam_policy_document" "system_user_s3_upload_writeonly" { resources = [ "${var.upload_bucket_arn}/*", - "${var.upload_bucket_arn}/${var.org_name}/${var.system_name}/" + "${var.upload_bucket_arn}/${var.org_name}/${var.system_name}/", ] } }