-
-
Save BrendanThompson/bb0edcb9f6e19a3bf1edeea75add32fe to your computer and use it in GitHub Desktop.
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 "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