Add validation that requires atleast one user specified
This commit is contained in:
parent
821c8b3c9e
commit
491dcc1651
1 changed files with 4 additions and 0 deletions
|
@ -17,4 +17,8 @@ variable "users" {
|
|||
type = list(string)
|
||||
default = []
|
||||
description = "List of users to generate S3 API keys for. Will be used as the IAM name."
|
||||
validation {
|
||||
condition = length(var.users) > 0
|
||||
error_message = "At least one user must be specified!"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue