Skip to content

Commit 59d410e

Browse files
fix: add validation to prompt ansible vault password when SCC workload protection instance is detected (#792)
1 parent 08fedf5 commit 59d410e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/pi-sap-system-type1/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,4 +236,9 @@ variable "scc_wp_instance" {
236236
api_endpoint = "",
237237
ingestion_endpoint = ""
238238
}
239+
240+
validation {
241+
condition = var.scc_wp_instance.guid == "" || (var.ansible_vault_password != "" && var.ansible_vault_password != null)
242+
error_message = "Ansible vault password must not be empty or null when SCC workload instance is enabled. Value must be set for ansible_vault_password variable."
243+
}
239244
}

0 commit comments

Comments
 (0)