We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ec17ef + 9a3e1a1 commit b0d6209Copy full SHA for b0d6209
outputs.tf
@@ -14,7 +14,7 @@ output "address_prefixes" {
14
}
15
16
output "nsg_association_id" {
17
- value = azurerm_subnet_network_security_group_association.this[0].id
+ value = var.nsg_id == null ? null : azurerm_subnet_network_security_group_association.this[0].id
18
description = "The ID of the Network Security Group Association"
19
20
0 commit comments