Terraform-GCP. Limit google_container_node_pool.name to 40 chars
google_container_node_pool.name
is limited to 40 symbols by GCP. But when you have var.project_id
autogenerated it is already 30 symbols. So then google_container_node_pool.name
exceeds 40 symbols and can't be created.
This fix uses substr() function for node pool name to limit string to 40 symbols.
Edited by Eugene Burachevskiy