Skip to content

Commit

Permalink
fix master password autogen constraints (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
leondkr authored Oct 28, 2022
1 parent da98453 commit 9c90d53
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ data "aws_partition" "current" {}
resource "random_password" "master_password" {
count = var.create && var.create_random_password ? 1 : 0

length = var.random_password_length
min_lower = 1
min_numeric = 1
min_special = 1
min_upper = 1
special = false
length = var.random_password_length
min_lower = 1
min_numeric = 1
min_special = 1
min_upper = 1
special = true
override_special = "!#$%&*()-_=+[]{}<>:?"
}

################################################################################
Expand Down

0 comments on commit 9c90d53

Please sign in to comment.