-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
146 lines (122 loc) · 3.41 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
136
137
138
139
140
141
142
143
144
145
146
################################
## Azure Provider - Variables ##
################################
# Azure authentication variables
variable "azure-subscription-id" {
type = string
description = "Azure Subscription ID"
}
variable "azure-client-id" {
type = string
description = "Azure Client ID"
}
variable "azure-client-secret" {
type = string
description = "Azure Client Secret"
}
variable "azure-tenant-id" {
type = string
description = "Azure Tenant ID"
}
#############################
## Application - Variables ##
#############################
# Company name
variable "company" {
type = string
description = "This variable defines the company name used to build resources"
}
# Application name
variable "app_name" {
type = string
description = "This variable defines the application name used to build resources"
}
# Environment
variable "environment" {
type = string
description = "This variable defines the environment to be built"
}
# Azure region
variable "location" {
type = string
description = "Azure region where resources will be created"
default = "west europe"
}
# Azure short region
variable "shortlocation" {
type = string
description = "Azure region where resources will be created"
default = "we"
}
#########################
## Network - Variables ##
#########################
variable "vnet_address_space" {
type = string
description = "VNET for OpenAI VNET"
}
variable "subnet_address_space" {
type = string
description = "Subnet for OpenAI Public Endpoint"
}
####################################
## Cognitive Services - Variables ##
####################################
variable "cognitive_account_sku_name" {
type = string
description = "Specifies the SKU Name for this Cognitive Service Account"
default = "S0"
}
variable "cognitive_account_kind_name" {
type = string
description = "Specifies the SKU Name for this Cognitive Service Account"
default = "OpenAI"
}
variable "cognitive_deployment" {
description = "List of Cognitive Deployments"
type = list(object({
name = string
format = string
type = string
version = string
scale_type = string
capacity = number
}))
default = [
{
name = "gpt35"
format = "OpenAI"
type = "gpt-35-turbo"
version = "0301"
scale_type = "Standard"
capacity = 10
}
]
}
variable "public_network_access_enabled" {
type = bool
description = "Enable public network access"
default = false
}
variable "outbound_network_access_restricted" {
type = bool
description = "Whether outbound network access is restricted for the Cognitive Account"
default = true
}
variable "network_acls_default_action" {
type = string
description = "The Default Action to use when no rules match from ip_rules / virtual_network_rules. Possible values are Allow and Deny."
default = "Deny"
}
variable "network_acls_ip_rules" {
type = list(string)
description = "One or more IP Addresses, or CIDR Blocks, which should be able to access the Cognitive Account."
default = []
}
#####################
## DNS - Variables ##
#####################
variable "private_dns_resource_group" {
type = string
description = "The Resource Group where the Private DNS for OpenAI was created"
}