From 10003ec95cb8790284d78f7cfea4f34181431acc Mon Sep 17 00:00:00 2001 From: Alex Ruiz Date: Thu, 26 Mar 2020 19:25:48 +0100 Subject: [PATCH] Avoid race condition in locals --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 993660cf..2937aaa6 100644 --- a/main.tf +++ b/main.tf @@ -94,7 +94,7 @@ data "template_file" "default" { } resource "aws_s3_bucket_policy" "default" { - count = ! local.using_existing_origin || var.override_origin_bucket_policy ? 1 : 0 + count = ! var.use_existing_origin || var.override_origin_bucket_policy ? 1 : 0 bucket = local.bucket policy = data.template_file.default.rendered }