From be9de00015fa45c49c115f8ee81c88073e8c054e Mon Sep 17 00:00:00 2001 From: Aleksei Krugliak Date: Sun, 13 Oct 2024 11:25:27 +0400 Subject: [PATCH] added missed depends_on --- private-cluster-module/README.md | 1 + private-cluster-module/vpc.tf | 1 + simple-template/vpc.tf | 1 + 3 files changed, 3 insertions(+) diff --git a/private-cluster-module/README.md b/private-cluster-module/README.md index 8249cae..6b50c29 100644 --- a/private-cluster-module/README.md +++ b/private-cluster-module/README.md @@ -117,6 +117,7 @@ Some manual tests. | Name | Source | Version | |------|--------|---------| +| [flux-cluster-variables](#module\_flux-cluster-variables) | git@bitbucket.org:altenar/terraform-module-k8s-flux-cluster-variables.git | 1.0.0 | | [gke](#module\_gke) | terraform-google-modules/kubernetes-engine/google//modules/beta-private-cluster-update-variant | 32.0.0 | ## Resources diff --git a/private-cluster-module/vpc.tf b/private-cluster-module/vpc.tf index af81ae0..d126ffe 100644 --- a/private-cluster-module/vpc.tf +++ b/private-cluster-module/vpc.tf @@ -7,6 +7,7 @@ resource "google_project_service" "service_networking" { resource "google_compute_network" "vpc" { name = var.vpc_network auto_create_subnetworks = "false" + depends_on = [google_project_service.service_networking] } resource "google_compute_subnetwork" "subnet" { diff --git a/simple-template/vpc.tf b/simple-template/vpc.tf index 75e07b0..036834e 100644 --- a/simple-template/vpc.tf +++ b/simple-template/vpc.tf @@ -7,6 +7,7 @@ resource "google_project_service" "service_networking" { resource "google_compute_network" "vpc" { name = "${var.project}-vpc" auto_create_subnetworks = "false" + depends_on = [google_project_service.service_networking] } resource "google_compute_subnetwork" "subnet" {