Skip to content

Commit

Permalink
Create route table before destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Apr 23, 2024
1 parent 1d73bfa commit 0d1bd4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tf/modules/network/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,8 @@ resource "aws_route_table_association" "private" {
count = var.az_count
subnet_id = element(aws_subnet.private[*].id, count.index)
route_table_id = element(aws_route_table.private[*].id, count.index)

lifecycle {
create_before_destroy = true
}
}

0 comments on commit 0d1bd4e

Please sign in to comment.