From 26bbb2f164549c2f196ad9759921a2419b7d9860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20B=C3=A9jean?= <nicolas@bejean.fr> Date: Sun, 12 Dec 2021 22:36:09 +0100 Subject: [PATCH] Delete CloudSQL --- manifests/gke/main.tf | 35 ----------------------------------- manifests/gke/variables.tf | 6 ------ 2 files changed, 41 deletions(-) diff --git a/manifests/gke/main.tf b/manifests/gke/main.tf index c871e80..31d27a9 100644 --- a/manifests/gke/main.tf +++ b/manifests/gke/main.tf @@ -217,38 +217,3 @@ resource "google_container_node_pool" "node_pool" { } } } - -### Create Cloud SQL -resource "google_sql_database_instance" "cloud_sql" { - provider = google - project = var.project_id - name = var.cloud_sql_name - region = var.region - database_version = "MYSQL_8_0" - deletion_protection = false - - settings { - tier = "db-custom-2-3840" # 2vCPU - 3.75 Go - availability_type = "REGIONAL" - - backup_configuration { - enabled = true - binary_log_enabled = true - location = "eu" - } - - ip_configuration { - ipv4_enabled = false - private_network = google_compute_network.vpc_network.id - } - - location_preference { - zone = "europe-west1-b" - } - - maintenance_window { - day = 1 - hour = 0 - } - } -} diff --git a/manifests/gke/variables.tf b/manifests/gke/variables.tf index 49e238d..8f951ef 100644 --- a/manifests/gke/variables.tf +++ b/manifests/gke/variables.tf @@ -51,9 +51,3 @@ variable "node_pool_name" { type = string default = "gke-preemptible-nodes" } - -### Cloud SQL -variable "cloud_sql_name" { - type = string - default = "cloudsql-gke" -} -- GitLab