Skip to content

Instantly share code, notes, and snippets.

@larkintuckerllc
Last active October 31, 2020 11:07
Show Gist options
  • Save larkintuckerllc/13220c3048affe53057c4dc1292dd14d to your computer and use it in GitHub Desktop.
Save larkintuckerllc/13220c3048affe53057c4dc1292dd14d to your computer and use it in GitHub Desktop.
v
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