added missed depends_on

This commit is contained in:
Aleksei Krugliak 2024-10-13 11:25:27 +04:00
parent 24642950f7
commit be9de00015
3 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,7 @@ Some manual tests.
| Name | Source | Version | | Name | Source | Version |
|------|--------|---------| |------|--------|---------|
| <a name="module_flux-cluster-variables"></a> [flux-cluster-variables](#module\_flux-cluster-variables) | git@bitbucket.org:altenar/terraform-module-k8s-flux-cluster-variables.git | 1.0.0 |
| <a name="module_gke"></a> [gke](#module\_gke) | terraform-google-modules/kubernetes-engine/google//modules/beta-private-cluster-update-variant | 32.0.0 | | <a name="module_gke"></a> [gke](#module\_gke) | terraform-google-modules/kubernetes-engine/google//modules/beta-private-cluster-update-variant | 32.0.0 |
## Resources ## Resources

View File

@ -7,6 +7,7 @@ resource "google_project_service" "service_networking" {
resource "google_compute_network" "vpc" { resource "google_compute_network" "vpc" {
name = var.vpc_network name = var.vpc_network
auto_create_subnetworks = "false" auto_create_subnetworks = "false"
depends_on = [google_project_service.service_networking]
} }
resource "google_compute_subnetwork" "subnet" { resource "google_compute_subnetwork" "subnet" {

View File

@ -7,6 +7,7 @@ resource "google_project_service" "service_networking" {
resource "google_compute_network" "vpc" { resource "google_compute_network" "vpc" {
name = "${var.project}-vpc" name = "${var.project}-vpc"
auto_create_subnetworks = "false" auto_create_subnetworks = "false"
depends_on = [google_project_service.service_networking]
} }
resource "google_compute_subnetwork" "subnet" { resource "google_compute_subnetwork" "subnet" {