From 2b3a57d0341c269b11324dfd7f1f689fa7cf021a 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 5a0bb8602934abb3bedc12ac41021bd6a7d2f29c 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}/", ] } }