Skip to content

Commit

Permalink
Avoid race condition in locals
Browse files Browse the repository at this point in the history
  • Loading branch information
ahharu committed Mar 26, 2020
1 parent 92df6e4 commit 10003ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 10003ec

Please sign in to comment.