diff --git a/main.tf b/main.tf index 24b9d11..e88e25f 100644 --- a/main.tf +++ b/main.tf @@ -122,7 +122,7 @@ data "aws_iam_policy_document" "this" { #--- # apply policy to bucket and public access block policy to bucket #--- -resource "aws_s3_bucket_policy" "policy" { +resource "aws_s3_bucket_policy" "this" { bucket = aws_s3_bucket.this.bucket policy = data.aws_iam_policy_document.this.json depends_on = [null_resource.policy_delay]