diff --git a/terraform.tf b/terraform.tf index 7f1a705..2848e43 100644 --- a/terraform.tf +++ b/terraform.tf @@ -72,8 +72,8 @@ data "aws_iam_policy_document" "bucket_policy_document" { } actions = ["s3:GetObject"] resources = [ - aws_s3_bucket.bucket.id, - "${aws_s3_bucket.bucket.id}/*", + aws_s3_bucket.bucket.arn, + "${aws_s3_bucket.bucket.arn}/*", ] } } @@ -164,4 +164,4 @@ resource "aws_cloudfront_distribution" "s3_distribution" { # # CloudFront> -# \ No newline at end of file +#