-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
29 lines (24 loc) · 1.08 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
output "id" {
value = try(azurerm_network_security_group.nsg[0].id, null)
description = "The network security group configuration ID."
}
output "name" {
value = try(azurerm_network_security_group.nsg[0].name, null)
description = "The name of the network security group."
}
output "tags" {
value = module.labels.tags
description = "The tags assigned to the resource."
}
output "subnet_id" {
value = try(azurerm_subnet_network_security_group_association.example[*].subnet_id, null)
description = "The ID of the Subnet. Changing this forces a new resource to be created."
}
output "network_watcher_name" {
value = var.enabled && var.enable_flow_logs ? azurerm_network_watcher_flow_log.nsg_flow_logs[0].name : null
description = "The name of the Network Watcher. Changing this forces a new resource to be created."
}
output "storage_account_id" {
value = var.enabled && var.enable_flow_logs ? azurerm_network_watcher_flow_log.nsg_flow_logs[0].storage_account_id : null
description = "The ID of the Storage Account where flow logs are stored."
}