Point to the ARN instead.

This commit is contained in:
Sacha Ligthert 2022-10-20 16:54:18 +00:00
parent a02e707550
commit 3c1f4c6325

View File

@ -72,8 +72,8 @@ data "aws_iam_policy_document" "bucket_policy_document" {
} }
actions = ["s3:GetObject"] actions = ["s3:GetObject"]
resources = [ resources = [
aws_s3_bucket.bucket.id, aws_s3_bucket.bucket.arn,
"${aws_s3_bucket.bucket.id}/*", "${aws_s3_bucket.bucket.arn}/*",
] ]
} }
} }