From 520daedc4356fdabfa7c1e5b1096d53fc7456df4 Mon Sep 17 00:00:00 2001 From: Hugo Tiburtino <45924645+hugotiburtino@users.noreply.github.com> Date: Wed, 30 Oct 2024 19:36:14 +0100 Subject: [PATCH 1/4] upgrade postgres to version 10 --- modules/gcloud/gcloud_postgres/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gcloud/gcloud_postgres/main.tf b/modules/gcloud/gcloud_postgres/main.tf index 3fa9756..6d9a5f4 100644 --- a/modules/gcloud/gcloud_postgres/main.tf +++ b/modules/gcloud/gcloud_postgres/main.tf @@ -1,6 +1,6 @@ resource "google_sql_database_instance" "db" { name = var.database_instance_name - database_version = "POSTGRES_9_6" + database_version = "POSTGRES_10_23" region = var.database_region lifecycle { From b8e2daae04771f1e238bd5a7c44407b0098501bc Mon Sep 17 00:00:00 2001 From: Hugo Tiburtino <45924645+hugotiburtino@users.noreply.github.com> Date: Thu, 31 Oct 2024 01:33:27 +0100 Subject: [PATCH 2/4] chore!(make): remove destroy command since it is risky --- envs/terraform.mk | 5 ----- 1 file changed, 5 deletions(-) diff --git a/envs/terraform.mk b/envs/terraform.mk index d900ebc..903123d 100644 --- a/envs/terraform.mk +++ b/envs/terraform.mk @@ -29,11 +29,6 @@ terraform_apply_without_downloading_secrets: terraform fmt -recursive terraform apply -var-file secrets/terraform-$(env_name).tfvars -.PHONY: terraform_destroy -terraform_destroy: - terraform fmt -recursive - terraform destroy -var-file secrets/terraform-$(env_name).tfvars - .PHONY: terraform_download_secrets terraform_download_secrets: rm -rf secrets From 1c917823e60efc28483b900ce14b248409ecdfdd Mon Sep 17 00:00:00 2001 From: Hugo Tiburtino <45924645+hugotiburtino@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:15:26 +0100 Subject: [PATCH 3/4] Upgrade postgres to v11 This is just for documentation, because the upgrade had to be done in the UI --- modules/gcloud/gcloud_postgres/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gcloud/gcloud_postgres/main.tf b/modules/gcloud/gcloud_postgres/main.tf index 6d9a5f4..5eb3bda 100644 --- a/modules/gcloud/gcloud_postgres/main.tf +++ b/modules/gcloud/gcloud_postgres/main.tf @@ -1,6 +1,6 @@ resource "google_sql_database_instance" "db" { name = var.database_instance_name - database_version = "POSTGRES_10_23" + database_version = "POSTGRES_11" region = var.database_region lifecycle { From 1bee3a7feb6366c1cc5a668cfc4555a694ef4376 Mon Sep 17 00:00:00 2001 From: Hugo Tiburtino <45924645+hugotiburtino@users.noreply.github.com> Date: Thu, 7 Nov 2024 02:55:57 +0100 Subject: [PATCH 4/4] documentate upgrade of postgres to v12 --- modules/gcloud/gcloud_postgres/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gcloud/gcloud_postgres/main.tf b/modules/gcloud/gcloud_postgres/main.tf index 5eb3bda..b61695e 100644 --- a/modules/gcloud/gcloud_postgres/main.tf +++ b/modules/gcloud/gcloud_postgres/main.tf @@ -1,6 +1,6 @@ resource "google_sql_database_instance" "db" { name = var.database_instance_name - database_version = "POSTGRES_11" + database_version = "POSTGRES_12" region = var.database_region lifecycle {