Point to the ARN instead.
This commit is contained in:
parent
a02e707550
commit
3c1f4c6325
@ -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}/*",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -164,4 +164,4 @@ resource "aws_cloudfront_distribution" "s3_distribution" {
|
|||||||
|
|
||||||
#
|
#
|
||||||
# CloudFront>
|
# CloudFront>
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user