forked from helloluna1230/DifyOnAzure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
125 lines (99 loc) · 2.65 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
#================================================================================================
# Environment Vars - Global
#================================================================================================
# Service Principal
variable "sp-subscription-id" {
description = "Id of the azure subscription where all resources will be created"
type = string
}
variable "sp-client-id" {
description = "Client Id of A Service Principal or Azure Active Directory application registration used for provisioning azure resources."
type = string
}
variable "sp-client-secret" {
description = "Secret of A Service Principal or Azure Active Directory application registration used for provisioning azure resources."
type = string
}
variable "sp-tenant-id" {
description = "Tenant Id of the azure account."
type = string
}
variable "default_tags" {
type = map(any)
default = {
"Project" = "dify"
}
}
#================================================================================================
# Environment Vars
#================================================================================================
# Azure resources
variable "location" {
description = "Specifies the location for the resource group and all the resources"
type = string
default = "East US"
}
variable "name" {
description = "Name of the main resource name"
type = string
default = "dify"
}
variable "environment" {
default = "dev"
}
#================================================================================================
# Networks
#================================================================================================
variable "vnet" {} # The vnet cidr.
variable "subnets" {} # A list of subnet cidrs.
variable "kubernetes_version" {
default = "1.29.1"
}
variable "node_count" {
default = "1"
}
variable "vm_size" {}
variable "max_pods" {
default = "30"
}
variable "redis_cache_enabled" {
default = true
}
variable "redis_cache_family" {
default = "C"
}
variable "redis_cache_sku" {
default = "Basic"
}
variable "redis_cache_capacity" {
default = "1"
}
variable "redis_cache_prefix" {
default = "redis"
}
variable "redis_cache_name" {
default = "cache"
}
variable "redis_public_network_access_enabled" {
default = true
}
variable "pgsql_admin_login" {
default = "postgres"
}
variable "pgsql_admin_password" {
default = "Test1234t"
}
variable "pgsql_storage_mb" {
default = "262144"
}
variable "pgsql_version" {
default = "15"
}
variable "pgsql_sku_name" {
default = "GP_Standard_D2s_v3"
}
variable "pg_zone" {
default = "1"
}
variable "filename" {
}