소스 검색

Point to the ARN instead.

Sacha Ligthert 3 년 전
부모
커밋
3c1f4c6325
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      terraform.tf

+ 3 - 3
terraform.tf

@@ -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.id}/*",
+      aws_s3_bucket.bucket.arn,
+      "${aws_s3_bucket.bucket.arn}/*",
     ]
     ]
   }
   }
 }
 }
@@ -164,4 +164,4 @@ resource "aws_cloudfront_distribution" "s3_distribution" {
 
 
 #
 #
 # CloudFront>
 # CloudFront>
-#
+#