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

Commit

Permalink
increase sleep time
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Nov 12, 2024
1 parent 33eb6ae commit eec2cfd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ locals {
}
}

resource "time_sleep" "wait_1_sec" {
create_duration = "1s"
destroy_duration = "1s"
resource "time_sleep" "wait" {
create_duration = "10s"
destroy_duration = "10s"
depends_on = [azurerm_subnet.subnet_for_each, azurerm_subnet.subnet_count]
}

Expand All @@ -110,13 +110,13 @@ resource "azurerm_subnet_network_security_group_association" "vnet" {

network_security_group_id = each.value
subnet_id = local.azurerm_subnets_name_id_map[each.key]
depends_on = [time_sleep.wait_1_sec]
depends_on = [time_sleep.wait]
}

resource "azurerm_subnet_route_table_association" "vnet" {
for_each = var.route_tables_ids

route_table_id = each.value
subnet_id = local.azurerm_subnets_name_id_map[each.key]
depends_on = [time_sleep.wait_1_sec]
depends_on = [time_sleep.wait]
}

0 comments on commit eec2cfd

Please sign in to comment.