-
Notifications
You must be signed in to change notification settings - Fork 68
/
variables.tf
136 lines (113 loc) · 3.43 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
variable "name" {
type = string
description = "The name of the web app."
}
variable "resource_group_name" {
type = string
description = "The name of an existing resource group to use for the web app."
}
variable "container_type" {
type = string
default = "docker"
description = "Type of container. The options are: `docker`, `compose` or `kube`."
}
variable "container_config" {
type = string
default = ""
description = "Configuration for the container. This should be YAML."
}
variable "container_image" {
type = string
default = ""
description = "Container image name. Example: `innovationnorway/python-hello-world:latest`."
}
variable "port" {
type = string
default = ""
description = "The value of the expected container port number."
}
variable "enable_storage" {
type = string
default = "false"
description = "Mount an SMB share to the `/home/` directory."
}
variable "start_time_limit" {
type = number
default = 230
description = "Configure the amount of time (in seconds) the app service will wait before it restarts the container."
}
variable "command" {
type = string
default = ""
description = "A command to be run on the container."
}
variable "app_settings" {
type = map(string)
default = {}
description = "Set app settings. These are avilable as environment variables at runtime."
}
variable "secure_app_settings" {
type = map(string)
default = {}
description = "Set sensitive app settings. Uses Key Vault references as values for app settings."
}
variable "app_service_plan_id" {
type = string
default = ""
description = "The ID of an existing app service plan to use for the web app."
}
variable "key_vault_id" {
type = string
default = ""
description = "The ID of an existing Key Vault. Required if `secure_app_settings` is set."
}
variable "sku" {
type = string
default = "Basic_B1"
description = "The SKU of an app service plan to create for the web app."
}
variable "always_on" {
type = bool
default = true
description = "Either `true` to ensure the web app gets loaded all the time, or `false` to to unload after being idle."
}
variable "https_only" {
type = bool
default = true
description = "Redirect all traffic made to the web app using HTTP to HTTPS."
}
variable "ftps_state" {
type = string
default = "Disabled"
description = "Set the FTPS state value the web app. The options are: `AllAllowed`, `Disabled` and `FtpsOnly`."
}
variable "ip_restrictions" {
type = list(string)
default = []
description = "A list of IP addresses in CIDR format specifying Access Restrictions."
}
variable "custom_hostnames" {
type = list(string)
default = []
description = "List of custom hostnames to use for the web app."
}
variable "docker_registry_username" {
type = string
default = ""
description = "The container registry username."
}
variable "docker_registry_url" {
type = string
default = "https://index.docker.io"
description = "The container registry url."
}
variable "docker_registry_password" {
type = string
default = ""
description = "The container registry password."
}
variable "tags" {
type = map(string)
default = {}
description = "A mapping of tags to assign to the web app."
}