diff --git a/main.tf b/main.tf index f3e9594..5cc8b79 100644 --- a/main.tf +++ b/main.tf @@ -82,6 +82,9 @@ resource "null_resource" "kubeconfig" { } data "external" "external_ips" { + depends_on = [ + module.main + ] program = ["bash", "-c", "gcloud compute instances list --filter=\"name~${var.name}\" --format=\"json(networkInterfaces[0].accessConfigs[0].natIP)\" | jq 'to_entries | map({key: (.key|tostring), value: (.value|tostring)}) | from_entries'"] }