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,