Skip to content

Commit

Permalink
Fix: Don't create random_password resource if not enabled. (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Miller <[email protected]>
  • Loading branch information
petur and milldr authored Jul 21, 2023
1 parent 4cc97b3 commit b6992b9
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 @@ -51,7 +51,7 @@ resource "aws_security_group_rule" "ingress_cidr_blocks" {
}

resource "random_password" "password" {
count = module.this.enabled && var.master_password != "" ? 0 : 1
count = module.this.enabled && var.master_password == "" ? 1 : 0
length = 16
special = false
}
Expand Down

0 comments on commit b6992b9

Please sign in to comment.