toset - Functions - Configuration Language | Terraform | HashiCorp Developer

The toset function converts a value to a set.
developer.hashicorp.com developer.hashicorp.com