From eec2cfdbc2dbde912c68e4396ac98470fbe94cfb Mon Sep 17 00:00:00 2001 From: hezijie Date: Tue, 12 Nov 2024 14:09:03 +0800 Subject: [PATCH] increase sleep time --- main.tf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.tf b/main.tf index 23d90ae..aee6bd7 100644 --- a/main.tf +++ b/main.tf @@ -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] } @@ -110,7 +110,7 @@ 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" { @@ -118,5 +118,5 @@ resource "azurerm_subnet_route_table_association" "vnet" { 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] }