Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
update (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
yupwei68 authored Jul 22, 2020
1 parent 254bd96 commit 83cb4f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "azurerm_subnet" "subnet" {
name = var.subnet_names[count.index]
resource_group_name = data.azurerm_resource_group.vnet.name
virtual_network_name = azurerm_virtual_network.vnet.name
address_prefix = var.subnet_prefixes[count.index]
address_prefixes = [var.subnet_prefixes[count.index]]
}

data "azurerm_subnet" "import" {
Expand All @@ -33,6 +33,4 @@ resource "azurerm_subnet_network_security_group_association" "vnet" {
for_each = var.nsg_ids
subnet_id = data.azurerm_subnet.import[each.key].id
network_security_group_id = each.value

depends_on = [data.azurerm_subnet.import]
}

0 comments on commit 83cb4f7

Please sign in to comment.