From cab31babb92c75903fc43e3a3b90bffcecb1871e Mon Sep 17 00:00:00 2001 From: matt-heery Date: Fri, 19 Jul 2024 16:49:04 +0100 Subject: [PATCH] editing bucket --- .../environments/electronic-monitoring-data/lambdas_iam.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/environments/electronic-monitoring-data/lambdas_iam.tf b/terraform/environments/electronic-monitoring-data/lambdas_iam.tf index 4ed5a3a4ebd..a286cd4039b 100644 --- a/terraform/environments/electronic-monitoring-data/lambdas_iam.tf +++ b/terraform/environments/electronic-monitoring-data/lambdas_iam.tf @@ -501,8 +501,8 @@ data "aws_iam_policy_document" "load_json_table_s3_policy_document" { "s3:GetBucketLocation" ] resources = [ - "${aws_s3_bucket.data_store.arn}/*", - aws_s3_bucket.data_store.arn, + "${module.json-directory-structure-bucket.bucket.arn}/*", + module.json-directory-structure-bucket.bucket.arn, "${module.athena-s3-bucket.bucket.arn}/*", module.athena-s3-bucket.bucket.arn, module.metadata-s3-bucket.bucket.arn,