-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
32 lines (30 loc) · 1.22 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED PARAMETERS
# You must provide a value for each of these parameters.
# ---------------------------------------------------------------------------------------------------------------------
variable "rg_name" {
type = string
description = "Name of resource group manually created before terraform init"
}
variable "app_name" {
type = string
description = "Unique identifier of the app"
validation {
condition = length(var.app_name) > 3 && length(var.app_name) <= 18
error_message = "'app_name' length should be between 3 to 18."
}
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL PARAMETERS
# These parameters have reasonable defaults.
# ---------------------------------------------------------------------------------------------------------------------
variable "location" {
type = string
description = "Azure Location of the service"
default = "eastus"
}
variable "env" {
type = string
description = "Environment where we're provisioning to"
default = "dev"
}