Skip to content

Commit

Permalink
fix: Add condition to manage creation of cache bucket policy (#39)
Browse files Browse the repository at this point in the history
Fixes #38
  • Loading branch information
k911 authored and aknysh committed Mar 31, 2019
1 parent 0650994 commit 42ea8dd
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 @@ -129,7 +129,7 @@ data "aws_iam_policy_document" "permissions" {
}

data "aws_iam_policy_document" "permissions_cache_bucket" {
count = "${var.enabled == "true" ? 1 : 0}"
count = "${var.enabled == "true" && var.cache_enabled == "true" ? 1 : 0}"

statement {
sid = ""
Expand Down

0 comments on commit 42ea8dd

Please sign in to comment.