Skip to content

Commit 690ae20

Browse files
Update iam.tf
Co-authored-by: Anton Babenko <[email protected]>
1 parent ecc0847 commit 690ae20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
locals {
22
create_role = var.create && var.create_role
33
create_pipes = var.create && var.create_pipes
4-
create_role_for_pipes = local.create_pipes && var.create_role ? true : var.create_pipe_role_only
4+
create_role_for_pipes = local.create_pipes && (var.create_role || var.create_pipe_role_only)
55

66
# Defaulting to "*" (an invalid character for an IAM Role name) will cause an error when
77
# attempting to plan if the role_name and bus_name are not set. This is a workaround

0 commit comments

Comments
 (0)