-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
207 lines (177 loc) · 4.7 KB
/
Copy pathvariables.tf
File metadata and controls
207 lines (177 loc) · 4.7 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# Variables for Integration Module
# Repository Configuration
variable "repository_name" {
description = "Name of the integration repository"
type = string
default = ""
}
variable "repository_description" {
description = "Description of the integration repository"
type = string
default = ""
}
variable "project_name" {
description = "Name of the integration project"
type = string
default = ""
}
# Spoke Configuration
variable "spoke_name" {
description = "Name of the spoke deployment"
type = string
default = ""
}
variable "subscription_id" {
description = "Azure subscription ID"
type = string
default = ""
}
variable "spoke_resource_group_name" {
description = "Spoke resource group name"
type = string
default = ""
}
variable "spoke_location" {
description = "Spoke location"
type = string
default = ""
}
variable "environment" {
description = "Environment name (dev, test, prod)"
type = string
default = ""
}
# Key Vault Configuration
variable "key_vault_id" {
description = "Key Vault resource ID"
type = string
default = ""
}
variable "key_vault_name" {
description = "Key Vault name"
type = string
default = ""
}
# Virtual Network Configuration
variable "virtual_network_id" {
description = "Virtual network resource ID"
type = string
default = ""
}
variable "virtual_network_name" {
description = "Virtual network name"
type = string
default = ""
}
# Legacy spoke deployment compatibility variables
variable "github_organization" {
description = "GitHub organization name (legacy)"
type = string
default = ""
}
variable "github_token" {
description = "GitHub token (legacy)"
type = string
default = ""
}
variable "azure_tenant_id" {
description = "Azure tenant ID (legacy)"
type = string
default = ""
}
variable "azure_subscription_id" {
description = "Azure subscription ID (legacy)"
type = string
default = ""
}
variable "service_principal_client_id" {
description = "Service principal client ID (legacy)"
type = string
default = ""
}
variable "github_oidc_issuer" {
description = "GitHub OIDC issuer (legacy)"
type = string
default = ""
}
variable "spoke_outputs" {
description = "Spoke outputs (legacy)"
type = any
default = {}
}
# Subnet Configuration - ALL subnets from spoke (user chooses in main.tf)
variable "subnet_ids" {
description = "Map of all subnet IDs from spoke deployment"
type = map(string)
default = {}
}
variable "subnet_names" {
description = "Map of all subnet names from spoke deployment"
type = map(string)
default = {}
}
# Optional Components
variable "log_analytics_workspace_id" {
description = "Log Analytics workspace resource ID"
type = string
default = ""
}
variable "log_analytics_workspace_name" {
description = "Log Analytics workspace resource name"
type = string
default = ""
}
# Terraform State Backend Configuration
variable "terraform_state_resource_group" {
description = "Resource group containing Terraform state storage account"
type = string
default = ""
}
variable "terraform_state_storage_account" {
description = "Storage account name for Terraform state"
type = string
default = ""
}
variable "terraform_state_container" {
description = "Container name for Terraform state"
type = string
default = ""
}
variable "github_repository_name" {
description = "Name of the GitHub repository to use for integration files and secrets."
type = string
}
variable "spoke_config" {
description = "Dummy object for template rendering"
type = object({
name = string
resource_group_name = string
location = string
tenant_id = string
environment = string
storage_account_name = string
key_vault_id = string
key_vault_name = string
pe_subnet_id = string
})
default = {
name = "dummy"
resource_group_name = "dummy"
location = "dummy"
tenant_id = "dummy"
environment = "dummy"
storage_account_name = "dummy"
key_vault_id = "dummy"
key_vault_name = "dummy"
pe_subnet_id = "dummy"
}
}
variable "integration_module_source" {
description = "Source of the integration module"
type = string
}
variable "default_runner_label" {
description = "Default label for GitHub Actions self-hosted runners"
type = string
default = "ubuntu24-prod"
}