-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathvariables.tf
More file actions
97 lines (78 loc) · 2.58 KB
/
variables.tf
File metadata and controls
97 lines (78 loc) · 2.58 KB
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
variable "resource_group" {
type = string
description = "The resource group"
}
variable "application_name" {
type = string
description = "The name of your application"
}
variable "environment" {
type = string
description = "The environment (dev, test, prod...)"
default = "dev"
}
variable "location" {
type = string
description = "The Azure region where all resources in this example should be created"
}
variable "appsvc_subnet_id" {
type = string
description = "The subnet id where the app service will be integrated"
}
variable "private_dns_resource_group" {
type = string
description = "The resource group where the private dns zone is created"
}
variable "private_endpoint_subnet_id" {
type = string
description = "The resourceId for a subnet in an Azure vnet that will be used for private endpoints"
}
variable "frontdoor_host_name" {
type = string
description = "The front door host name"
}
variable "frontdoor_profile_uuid" {
type = string
description = "The UUID of this Front Door Profile which will be sent in the HTTP Header as the X-Azure-FDID attribute.."
}
variable "app_insights_connection_string" {
type = string
description = "The app insights connection string"
}
variable "log_analytics_workspace_id" {
type = string
description = "The id of the log analytics workspace"
}
variable "public_network_access_enabled" {
type = bool
description = "Should public network access be enabled for the Web App."
}
variable "identity" {
type = object({
type = string
identity_ids = optional(list(string))
})
description = "The identity type and the list of identities ids"
default = {
type = "SystemAssigned"
identity_ids = []
}
validation {
condition = contains(["SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned"], var.identity.type)
error_message = "Please, choose among one of the following identity types: SystemAssigned, UserAssigned or SystemAssigned, UserAssigned."
}
}
variable "contoso_webapp_options" {
type = object({
contoso_active_directory_tenant_id = string
contoso_active_directory_client_id = string
contoso_active_directory_client_secret = string
postgresql_database_url = string
postgresql_database_user = string
postgresql_database_password = string
redis_host_name = string
redis_port = number
redis_user_client_id = string
})
description = "The options for the webapp"
}