Last active
October 31, 2020 11:07
-
-
Save larkintuckerllc/13220c3048affe53057c4dc1292dd14d to your computer and use it in GitHub Desktop.
v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "cluster_name" { | |
type = string | |
validation { | |
condition = can(regex("^[a-z]+[-a-z]*[a-z]+$", var.cluster_name)) | |
error_message = "The cluster_name value must be lower case letters (2+) with optional dashes in between." | |
} | |
} | |
variable "master_version" { | |
type = string | |
} | |
variable "node_version" { | |
type = string | |
} | |
variable "project" { | |
type = string | |
} | |
variable "region" { | |
type = string | |
} | |
variable "zones" { | |
type = list(string) | |
} | |
terraform { | |
required_providers { | |
google = { | |
source = "hashicorp/google" | |
version = "~> 3.45.0" | |
} | |
} | |
required_version = "~> 0.13.5" | |
} | |
provider "google" { | |
project = var.project | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment