Skip to content

Commit 42ea8dd

Browse files
k911aknysh
authored andcommitted
fix: Add condition to manage creation of cache bucket policy (#39)
Fixes #38
1 parent 0650994 commit 42ea8dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ data "aws_iam_policy_document" "permissions" {
129129
}
130130

131131
data "aws_iam_policy_document" "permissions_cache_bucket" {
132-
count = "${var.enabled == "true" ? 1 : 0}"
132+
count = "${var.enabled == "true" && var.cache_enabled == "true" ? 1 : 0}"
133133

134134
statement {
135135
sid = ""

0 commit comments

Comments
 (0)