Files
opentf/website/docs/configuration/functions
Arthur Burkart 6ed47c7241 lang/funcs: Add "alltrue" function (#25656)
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."
  }
}
```
2020-09-22 09:06:42 -04:00
..
2019-08-28 11:38:26 -04:00
2020-02-13 21:27:35 -05:00
2019-09-17 15:33:22 -07:00
2020-04-15 14:27:06 -04:00
2019-06-07 14:38:22 -07:00