-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathvariables-service-plan.tf
52 lines (44 loc) · 2.17 KB
/
variables-service-plan.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
variable "os_type" {
description = "The O/S type for the App Services to be hosted in this plan. Possible values include `Windows`, `Linux`, and `WindowsContainer`."
type = string
validation {
condition = try(contains(["Windows", "Linux", "WindowsContainer"], var.os_type), true)
error_message = "The `os_type` value must be valid. Possible values are `Windows`, `Linux`, and `WindowsContainer`."
}
}
variable "sku_name" {
description = "The SKU for the plan. Possible values include B1, B2, B3, D1, F1, FREE, I1, I2, I3, I1v2, I2v2, I3v2, P1v2, P2v2, P3v2, P0v3, P1v3, P2v3, P3v3, S1, S2, S3, SHARED, Y1, EP1, EP2, EP3, WS1, WS2, and WS3."
type = string
validation {
condition = try(contains([
"B1", "B2", "B3", "D1", "F1", "FREE", "I1", "I2", "I3", "I1v2", "I2v2", "I3v2", "P1v2", "P2v2", "P3v2", "P0v3",
"P1v3", "P2v3", "P3v3", "S1", "S2", "S3", "SHARED", "Y1", "EP1", "EP2", "EP3", "WS1", "WS2", "WS3"
], var.sku_name), true)
error_message = "The `sku_name` value must be valid. Possible values include B1, B2, B3, D1, F1, FREE, I1, I2, I3, I1v2, I2v2, I3v2, P1v2, P2v2, P3v2, P0v3, P1v3, P2v3, P3v3, S1, S2, S3, SHARED, Y1, EP1, EP2, EP3, WS1, WS2, and WS3."
}
}
variable "app_service_environment_id" {
description = "The ID of the App Service Environment to create this Service Plan in. Requires an Isolated SKU. Use one of I1, I2, I3 for `azurerm_app_service_environment`, or I1v2, I2v2, I3v2 for `azurerm_app_service_environment_v3`."
type = string
default = null
}
variable "worker_count" {
description = "The number of Workers (instances) to be allocated."
type = number
default = 3
}
variable "maximum_elastic_worker_count" {
description = "The maximum number of workers to use in an Elastic SKU Plan. Cannot be set unless using an Elastic SKU."
type = number
default = null
}
variable "per_site_scaling_enabled" {
description = "Should Per Site Scaling be enabled."
type = bool
default = false
}
variable "zone_balancing_enabled" {
description = "Should the Service Plan balance across Availability Zones in the region."
type = bool
default = true
}