Skip to content

Commit de05408

Browse files
committed
module update
1 parent e134997 commit de05408

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ resource "azurerm_key_vault" "main" {
144144

145145
resource "random_password" "passwd" {
146146
for_each = { for k, v in var.secrets : k => v if v == "" }
147-
length = 24
147+
length = var.random_password_length
148148
min_upper = 4
149149
min_lower = 2
150150
min_numeric = 4

variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ variable "secrets" {
6060
default = {}
6161
}
6262

63+
variable "random_password_length" {
64+
description = "The desired length of random password created by this module"
65+
default = 24
66+
}
67+
6368
variable "log_analytics_workspace_id" {
6469
description = "Specifies the ID of a Log Analytics Workspace where Diagnostics Data to be sent"
6570
default = null

0 commit comments

Comments
 (0)