From 3c1f4c6325b75149f5b5bbaa899b8033d3ded463 Mon Sep 17 00:00:00 2001 From: Sacha Ligthert Date: Thu, 20 Oct 2022 16:54:18 +0000 Subject: [PATCH] Point to the ARN instead. --- terraform.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +#