Skip to content

Commit 77a281a

Browse files
authored
fix: S3 replication rule IAM role (#81)
Update the replication IRM role to allow it to read from the correct source bucket.
1 parent 8764c52 commit 77a281a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

terragrunt/aws/cdn/s3.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ data "aws_iam_policy_document" "s3_replicate_data_lake" {
135135
"s3:ListBucket"
136136
]
137137
resources = [
138-
module.cdn_origin.s3_bucket_arn
138+
module.cloudfront_logs.s3_bucket_arn
139139
]
140140
}
141141
statement {
@@ -145,7 +145,7 @@ data "aws_iam_policy_document" "s3_replicate_data_lake" {
145145
"s3:GetObjectVersionAcl"
146146
]
147147
resources = [
148-
"${module.cdn_origin.s3_bucket_arn}/*"
148+
"${module.cloudfront_logs.s3_bucket_arn}/*"
149149
]
150150
}
151151
statement {

0 commit comments

Comments
 (0)