Skip to content

Commit

Permalink
add depends_on to nsg_data_source
Browse files Browse the repository at this point in the history
  • Loading branch information
jksprattler committed Nov 5, 2024
1 parent 3743053 commit f0e08b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloud_Azure/terraform/module/network_watcher.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ data "external" "nsg_data_source" {
query = {
resource_group_names = join(",", var.resource_group_names)
}
# Ensures required dependencies are installed prior to running script
depends_on = [null_resource.install_dependencies]
}

# Convert map of string -> string:
Expand Down Expand Up @@ -46,7 +48,7 @@ locals {
resource "azurerm_network_watcher_flow_log" "kentik_network_flow_log" {
count = length(local.flat_nsgs)

name = "${var.name}_flow_log_${count.index}"
name = "${var.name}_flow_log_${count.index}"
network_watcher_name = data.azurerm_network_watcher.network_watcher.name
resource_group_name = data.azurerm_network_watcher.network_watcher.resource_group_name

Expand Down

0 comments on commit f0e08b2

Please sign in to comment.