generated from cyber-scot/terraform-module-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
454 lines (369 loc) · 17.2 KB
/
outputs.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
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
output "all_solution_ips" {
value = local.all_solution_ips
description = "All the public IPs from function apps and logic apps made by this solution"
}
output "app_insights_action_group_id" {
value = azurerm_monitor_action_group.app_insights_ag.id
description = "The ID of the Application Insights Action Group."
}
output "app_insights_action_group_name" {
value = azurerm_monitor_action_group.app_insights_ag.name
description = "The name of the Application Insights Action Group."
}
output "app_insights_anomalies_detector_id" {
value = azurerm_monitor_smart_detector_alert_rule.app_insights_anomalies_detector.id
description = "The ID of the Application Insights Anomalies Detector."
}
output "app_insights_anomalies_detector_name" {
value = azurerm_monitor_smart_detector_alert_rule.app_insights_anomalies_detector.name
description = "The name of the Application Insights Anomalies Detector."
}
output "app_insights_id" {
value = azurerm_application_insights.app_insights.id
description = "The ID of the Application Insights."
}
output "app_insights_key" {
value = azurerm_application_insights.app_insights.instrumentation_key
description = "The Instrumentation Key of the Application Insights."
}
output "app_insights_name" {
value = azurerm_application_insights.app_insights.name
description = "The name of the Application Insights."
}
output "auto_stop_function_id" {
value = azurerm_logic_app_action_custom.auto_stop_function.id
description = "The ID of the Logic App Custom Action for Auto Stop Function."
}
output "auto_stop_logic_app_ips" {
value = toset(concat(
azurerm_logic_app_workflow.logic_app_auto_stop.connector_outbound_ip_addresses,
azurerm_logic_app_workflow.logic_app_auto_stop.connector_endpoint_ip_addresses,
azurerm_logic_app_workflow.logic_app_auto_stop.workflow_outbound_ip_addresses,
azurerm_logic_app_workflow.logic_app_auto_stop.workflow_endpoint_ip_addresses
))
description = "IP Addresses for the Auto Stop Logic App"
}
output "auto_stop_query_alert_rules_id" {
value = azurerm_monitor_scheduled_query_rules_alert_v2.auto_stop_query_alert_rules.id
description = "The ID of the Auto Stop Query Alert Rules."
}
output "auto_stop_query_alert_rules_name" {
value = azurerm_monitor_scheduled_query_rules_alert_v2.auto_stop_query_alert_rules.name
description = "The name of the Auto Stop Query Alert Rules."
}
output "auto_stop_recurrence_trigger_id" {
value = azurerm_logic_app_trigger_recurrence.auto_stop_recurrence_trigger.id
description = "The ID of the Logic App Recurrence Trigger for Auto Stop."
}
output "auto_stop_recurrence_trigger_name" {
value = azurerm_logic_app_trigger_recurrence.auto_stop_recurrence_trigger.name
description = "The name of the Logic App Recurrence Trigger for Auto Stop."
}
output "auto_stop_success_function_id" {
value = azurerm_logic_app_action_custom.auto_stop_success_function.id
description = "The ID of the Logic App Custom Action for Auto Stop Success Function."
}
output "auto_stop_terminate_id" {
value = azurerm_logic_app_action_custom.auto_stop_terminate.id
description = "The ID of the Logic App Custom Action for Auto Stop Terminate."
}
output "auto_update_request_details_store_table_name" {
value = azurerm_storage_table.auto_update_request_details_store_table.name
description = "The name of the Auto Update Request Details Store Table."
}
output "auto_update_request_queue_name" {
value = azurerm_storage_queue.auto_update_request_queue.name
description = "The name of the Auto Update Request Queue."
}
output "create_alert_request_queue_name" {
value = azurerm_storage_queue.create_alert_request.name
description = "The name of the Create Alert Request Queue."
}
output "dashboard_id" {
value = azurerm_portal_dashboard.dashboard.id
description = "The id of the dashboard"
}
output "dashboard_name" {
value = azurerm_portal_dashboard.dashboard.name
description = "The name of the dashboard"
}
output "execution_request_queue_name" {
value = azurerm_storage_queue.execution_request.name
description = "The name of the Execution Request Queue."
}
output "function_app_id" {
value = azurerm_windows_function_app.function_app.id
description = "The ID of the Windows Function App."
}
output "function_app_name" {
value = azurerm_windows_function_app.function_app.name
description = "The name of the Windows Function App."
}
output "function_app_principal_id" {
value = azurerm_windows_function_app.function_app.identity[0].principal_id
description = "The Principal ID of the Windows Function App's System Assigned Identity."
}
output "function_outbound_ips" {
value = azurerm_windows_function_app.function_app.outbound_ip_addresses
description = "The outbound IPs of the Windows Function App."
}
output "function_outbound_ips_list" {
value = azurerm_windows_function_app.function_app.outbound_ip_address_list
description = "The outbound IPs of the Windows Function App in list format."
}
output "function_possible_outbound_ips" {
value = azurerm_windows_function_app.function_app.possible_outbound_ip_addresses
description = "The possible_outbound IPs of the Windows Function App."
}
output "function_possible_outbound_ips_list" {
value = azurerm_windows_function_app.function_app.possible_outbound_ip_address_list
description = "The possible_outbound IPs of the Windows Function App in list format."
}
output "law_id" {
value = length(azurerm_log_analytics_workspace.law) > 0 ? azurerm_log_analytics_workspace.law[0].id : null
description = "The ID of the Log Analytics Workspace."
}
output "law_name" {
value = length(azurerm_log_analytics_workspace.law) > 0 ? azurerm_log_analytics_workspace.law[0].name : null
description = "The name of the Log Analytics Workspace."
}
output "logic_app_auto_stop_id" {
value = azurerm_logic_app_workflow.logic_app_auto_stop.id
description = "The ID of the Logic App Workflow for Auto Stop."
}
output "logic_app_auto_stop_name" {
value = azurerm_logic_app_workflow.logic_app_auto_stop.name
description = "The name of the Logic App Workflow for Auto Stop."
}
output "logic_app_scheduled_start_id" {
value = azurerm_logic_app_workflow.logic_app_scheduled_start.id
description = "The ID of the Logic App Workflow for Scheduled Start."
}
output "logic_app_scheduled_start_name" {
value = azurerm_logic_app_workflow.logic_app_scheduled_start.name
description = "The name of the Logic App Workflow for Scheduled Start."
}
output "logic_app_scheduled_stop_id" {
value = azurerm_logic_app_workflow.logic_app_scheduled_stop.id
description = "The ID of the Logic App Workflow for Scheduled Stop."
}
output "logic_app_scheduled_stop_name" {
value = azurerm_logic_app_workflow.logic_app_scheduled_stop.name
description = "The name of the Logic App Workflow for Scheduled Stop."
}
output "logic_app_sequenced_start_id" {
value = azurerm_logic_app_workflow.logic_app_sequenced_start.id
description = "The ID of the Logic App Workflow for Sequenced Start."
}
output "logic_app_sequenced_start_name" {
value = azurerm_logic_app_workflow.logic_app_sequenced_start.name
description = "The name of the Logic App Workflow for Sequenced Start."
}
output "logic_app_sequenced_stop_id" {
value = azurerm_logic_app_workflow.logic_app_sequenced_stop.id
description = "The ID of the Logic App Workflow for Sequenced Stop."
}
output "logic_app_sequenced_stop_name" {
value = azurerm_logic_app_workflow.logic_app_sequenced_stop.name
description = "The name of the Logic App Workflow for Sequenced Stop."
}
output "notification_action_group_id" {
value = azurerm_monitor_action_group.notification_group_ag.id
description = "The ID of the Notification Action Group."
}
output "notification_action_group_name" {
value = azurerm_monitor_action_group.notification_group_ag.name
description = "The name of the Notification Action Group."
}
output "orchestration_request_queue_name" {
value = azurerm_storage_queue.orchestration_request.name
description = "The name of the Orchestration Request Queue."
}
output "requests_store_table_name" {
value = azurerm_storage_table.requests_store_stable.name
description = "The name of the Requests Store Table."
}
output "rg_id" {
description = "The id of the resource group"
value = azurerm_resource_group.this.id
}
output "rg_location" {
description = "The location of the resource group"
value = azurerm_resource_group.this.location
}
output "rg_name" {
description = "The name of the resource group"
value = azurerm_resource_group.this.name
}
output "rg_tags" {
description = "The tags of the resource group"
value = azurerm_resource_group.this.tags
}
output "role_assignment_id" {
value = azurerm_role_assignment.id_contributor.id
description = "The ID of the Role Assignment."
}
output "role_assignment_principal_id" {
value = azurerm_role_assignment.id_contributor.principal_id
description = "The Principal ID associated with the Role Assignment."
}
output "role_assignment_role_definition_name" {
value = azurerm_role_assignment.id_contributor.role_definition_name
description = "The Role Definition Name associated with the Role Assignment."
}
output "savings_request_queue_name" {
value = azurerm_storage_queue.savings_request_queue.name
description = "The name of the Savings Request Queue."
}
output "scheduled_query_alert_rules_id" {
value = azurerm_monitor_scheduled_query_rules_alert_v2.scheduled_query_alert_rules.id
description = "The ID of the Scheduled Query Alert Rules."
}
output "scheduled_query_alert_rules_name" {
value = azurerm_monitor_scheduled_query_rules_alert_v2.scheduled_query_alert_rules.name
description = "The name of the Scheduled Query Alert Rules."
}
output "scheduled_start_daily_trigger_id" {
value = azurerm_logic_app_trigger_recurrence.scheduled_start_daily_trigger.id
description = "The ID of the Logic App Recurrence Trigger for Scheduled Start."
}
output "scheduled_start_daily_trigger_name" {
value = azurerm_logic_app_trigger_recurrence.scheduled_start_daily_trigger.name
description = "The name of the Logic App Recurrence Trigger for Scheduled Start."
}
output "scheduled_start_logic_app_ips" {
value = toset(concat(
azurerm_logic_app_workflow.logic_app_scheduled_start.connector_outbound_ip_addresses,
azurerm_logic_app_workflow.logic_app_scheduled_start.connector_endpoint_ip_addresses,
azurerm_logic_app_workflow.logic_app_scheduled_start.workflow_outbound_ip_addresses,
azurerm_logic_app_workflow.logic_app_scheduled_start.workflow_endpoint_ip_addresses,
))
description = "IP Addresses for the Scheduled Start Logic App"
}
output "scheduled_start_start_function_id" {
value = azurerm_logic_app_action_custom.scheduled_start_start_function.id
description = "The ID of the Logic App Custom Action for Scheduled Start Start Function."
}
output "scheduled_start_success_function_id" {
value = azurerm_logic_app_action_custom.scheduled_start_success_function.id
description = "The ID of the Logic App Custom Action for Scheduled Start Success Function."
}
output "scheduled_start_terminate_id" {
value = azurerm_logic_app_action_custom.scheduled_start_terminate.id
description = "The ID of the Logic App Custom Action for Scheduled Start Terminate."
}
output "scheduled_stop_daily_recurrence_id" {
value = azurerm_logic_app_trigger_recurrence.scheduled_stop_daily_recurrence.id
description = "The ID of the Logic App Recurrence Trigger for Scheduled Stop."
}
output "scheduled_stop_daily_recurrence_name" {
value = azurerm_logic_app_trigger_recurrence.scheduled_stop_daily_recurrence.name
description = "The name of the Logic App Recurrence Trigger for Scheduled Stop."
}
output "scheduled_stop_failed_function_id" {
value = azurerm_logic_app_action_custom.scheduled_stop_failed_function.id
description = "The ID of the Logic App Custom Action for Scheduled Stop Failed Function."
}
output "scheduled_stop_logic_app_ips" {
value = toset(concat(
azurerm_logic_app_workflow.logic_app_scheduled_stop.connector_outbound_ip_addresses,
azurerm_logic_app_workflow.logic_app_scheduled_stop.connector_endpoint_ip_addresses,
azurerm_logic_app_workflow.logic_app_scheduled_stop.workflow_outbound_ip_addresses,
azurerm_logic_app_workflow.logic_app_scheduled_stop.workflow_endpoint_ip_addresses
))
description = "IP Addresses for the Scheduled Stop Logic App"
}
output "scheduled_stop_stop_function_id" {
value = azurerm_logic_app_action_custom.scheduled_stop_stop_function.id
description = "The ID of the Logic App Custom Action for Scheduled Stop Stop Function."
}
output "scheduled_stop_succeeded_function_id" {
value = azurerm_logic_app_action_custom.scheduled_stop_succeeded_function.id
description = "The ID of the Logic App Custom Action for Scheduled Stop Succeeded Function."
}
output "sequenced_start_daily_trigger_id" {
value = azurerm_logic_app_trigger_recurrence.sequenced_start_daily_trigger.id
description = "The ID of the Logic App Recurrence Trigger for Sequenced Start."
}
output "sequenced_start_daily_trigger_name" {
value = azurerm_logic_app_trigger_recurrence.sequenced_start_daily_trigger.name
description = "The name of the Logic App Recurrence Trigger for Sequenced Start."
}
output "sequenced_start_failed_action_id" {
value = azurerm_logic_app_action_custom.sequenced_start_failed_action.id
description = "The ID of the Logic App Custom Action for Sequenced Start Failed Action."
}
output "sequenced_start_logic_app_ips" {
value = toset(concat(
azurerm_logic_app_workflow.logic_app_sequenced_start.connector_outbound_ip_addresses,
azurerm_logic_app_workflow.logic_app_sequenced_start.connector_endpoint_ip_addresses,
azurerm_logic_app_workflow.logic_app_sequenced_start.workflow_endpoint_ip_addresses,
azurerm_logic_app_workflow.logic_app_sequenced_start.workflow_outbound_ip_addresses
))
description = "IP Addresses for the Sequenced Start Logic App"
}
output "sequenced_start_start_function_id" {
value = azurerm_logic_app_action_custom.sequenced_start_start_function.id
description = "The ID of the Logic App Custom Action for Sequenced Start Start Function."
}
output "sequenced_start_success_action_id" {
value = azurerm_logic_app_action_custom.sequenced_start_success_action.id
description = "The ID of the Logic App Custom Action for Sequenced Start Success Action."
}
output "sequenced_stop_daily_trigger_id" {
value = azurerm_logic_app_trigger_recurrence.sequenced_stop_daily_trigger.id
description = "The ID of the Logic App Recurrence Trigger for Sequenced Stop."
}
output "sequenced_stop_daily_trigger_name" {
value = azurerm_logic_app_trigger_recurrence.sequenced_stop_daily_trigger.name
description = "The name of the Logic App Recurrence Trigger for Sequenced Stop."
}
output "sequenced_stop_logic_app_ips" {
value = toset(concat(
azurerm_logic_app_workflow.logic_app_sequenced_stop.connector_outbound_ip_addresses,
azurerm_logic_app_workflow.logic_app_sequenced_stop.connector_endpoint_ip_addresses,
azurerm_logic_app_workflow.logic_app_sequenced_stop.workflow_endpoint_ip_addresses,
azurerm_logic_app_workflow.logic_app_sequenced_stop.workflow_endpoint_ip_addresses
))
description = "IP Addresses for the Sequenced Stop Logic App"
}
output "sequenced_stop_stop_action_id" {
value = azurerm_logic_app_action_custom.sequenced_stop_stop_action.id
description = "The ID of the Logic App Custom Action for Sequenced Stop Action."
}
output "sequenced_stop_success_action_id" {
value = azurerm_logic_app_action_custom.sequenced_stop_success_action.id
description = "The ID of the Logic App Custom Action for Sequenced Stop Success Action."
}
output "sequenced_stop_termination_function_id" {
value = azurerm_logic_app_action_custom.sequenced_stop_termination_function.id
description = "The ID of the Logic App Custom Action for Sequenced Stop Termination Function."
}
output "service_plan_id" {
value = azurerm_service_plan.fnc_asp.id
description = "The ID of the Service Plan."
}
output "service_plan_name" {
value = azurerm_service_plan.fnc_asp.name
description = "The name of the Service Plan."
}
output "storage_account_id" {
value = azurerm_storage_account.storage.id
description = "The ID of the Storage Account."
}
output "storage_account_name" {
value = azurerm_storage_account.storage.name
description = "The name of the Storage Account."
}
output "subscription_requests_store_table_name" {
value = azurerm_storage_table.subscription_requests_store_stable.name
description = "The name of the Subscription Requests Store Table."
}
output "web_jobs_hosts_container_name" {
value = azurerm_storage_container.web_jobs_hosts.name
description = "The name of the Web Jobs Hosts Storage Container."
}
output "web_jobs_secrets_container_name" {
value = azurerm_storage_container.web_jobs_secrets.name
description = "The name of the Web Jobs Secrets Storage Container."
}