Skip to content

Instantly share code, notes, and snippets.

@BrendanThompson
Created September 8, 2021 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrendanThompson/bb0edcb9f6e19a3bf1edeea75add32fe to your computer and use it in GitHub Desktop.
Save BrendanThompson/bb0edcb9f6e19a3bf1edeea75add32fe to your computer and use it in GitHub Desktop.
variable "location" {
type = string
description = "(Optional) The location for resource deployment"
default = "australiaeast"
}
variable "environment" {
type = string
description = "(Required) Three character environment name"
validation {
condition = length(var.environment) <= 3
error_message = "Err: Environment cannot be longer than three characters."
}
}
variable "project" {
type = string
description = "(Required) The project name"
}
variable "databricks_sku" {
type = string
description = <<EOT
(Optional) The SKU to use for the databricks instance"
Default: standard
EOT
validation {
condition = can(regex("standard|premium|trial", var.databricks_sku))
error_message = "Err: Valid options are 'standard', 'premium' or 'trial'."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment