Explorar el Código

Correct an invalid resource

Sacha Ligthert hace 3 años
padre
commit
a02e707550
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      terraform.tf

+ 2 - 2
terraform.tf

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