6ed47c7241
This commit adds an `alltrue` function to Terraform configuration. A reason we might want this function is because it will enable more powerful custom variable validations. For example: ```hcl variable "amis" { type = list(object({ id = string })) validation { condition = (alltrue([ for a in var.amis : length(a.id) > 4 && substr(a.id, 0, 4) == "ami-" ])) error_message = "The ID of at least one AMI was invalid." } } ``` |
||
---|---|---|
.. | ||
backend-types.erb | ||
commands-providers.erb | ||
commands-state.erb | ||
commands-workspace.erb | ||
docs.erb | ||
downloads.erb | ||
functions.erb | ||
guides.erb | ||
intro.erb | ||
registry.erb | ||
terraform.erb |