From 537daf67a89e3f57396663a7f77f6d14221844c0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 17 Jan 2024 21:08:42 +0000 Subject: [PATCH 1/2] Update Terraform azurerm to v3.87.0 --- operations/environments/dev/main.tf | 2 +- operations/environments/internal/main.tf | 2 +- operations/environments/pr/main.tf | 2 +- operations/environments/prod/main.tf | 2 +- operations/environments/staging/main.tf | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/operations/environments/dev/main.tf b/operations/environments/dev/main.tf index 761dba74a..610668d9a 100644 --- a/operations/environments/dev/main.tf +++ b/operations/environments/dev/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "3.86.0" + version = "3.87.0" } } diff --git a/operations/environments/internal/main.tf b/operations/environments/internal/main.tf index c0c79ec3b..67da2a37b 100644 --- a/operations/environments/internal/main.tf +++ b/operations/environments/internal/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "3.86.0" + version = "3.87.0" } } diff --git a/operations/environments/pr/main.tf b/operations/environments/pr/main.tf index a6f466942..e048d0049 100644 --- a/operations/environments/pr/main.tf +++ b/operations/environments/pr/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "3.86.0" + version = "3.87.0" } } diff --git a/operations/environments/prod/main.tf b/operations/environments/prod/main.tf index 28ad6ce68..29e88fb7e 100644 --- a/operations/environments/prod/main.tf +++ b/operations/environments/prod/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "3.86.0" + version = "3.87.0" } } diff --git a/operations/environments/staging/main.tf b/operations/environments/staging/main.tf index cfea2a46b..582a16955 100644 --- a/operations/environments/staging/main.tf +++ b/operations/environments/staging/main.tf @@ -2,7 +2,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "3.86.0" + version = "3.87.0" } } From 7daf7ccfc45485cc13de4b9e7e81fc5be99bf60f Mon Sep 17 00:00:00 2001 From: halprin Date: Wed, 17 Jan 2024 15:19:13 -0700 Subject: [PATCH 2/2] Set the owner of the custom enum type in our db to azure_pg_admin --- .github/workflows/terraform-deploy_reusable.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/terraform-deploy_reusable.yml b/.github/workflows/terraform-deploy_reusable.yml index e832da747..154a19f5a 100644 --- a/.github/workflows/terraform-deploy_reusable.yml +++ b/.github/workflows/terraform-deploy_reusable.yml @@ -74,7 +74,7 @@ jobs: - name: Run Db migration run: | export PGPASSWORD=$(az account get-access-token --resource-type oss-rdbms --query "[accessToken]" -o tsv) - psql "host=$(terraform output -raw database_hostname) port=5432 dbname=postgres user=cdcti-github sslmode=require" -c "DO \$\$ BEGIN CREATE TYPE message_status AS ENUM ('PENDING', 'DELIVERED', 'FAILED'); EXCEPTION WHEN duplicate_object THEN null; END \$\$; CREATE TABLE IF NOT EXISTS metadata (received_message_id varchar(40) PRIMARY KEY, sent_message_id varchar(40), sender varchar(30), receiver varchar(30), hash_of_order varchar(1000), time_received timestamptz, delivery_status message_status); GRANT ALL ON metadata TO azure_pg_admin; ALTER TABLE metadata OWNER TO azure_pg_admin;" + psql "host=$(terraform output -raw database_hostname) port=5432 dbname=postgres user=cdcti-github sslmode=require" -c "DO \$\$ BEGIN CREATE TYPE message_status AS ENUM ('PENDING', 'DELIVERED', 'FAILED'); EXCEPTION WHEN duplicate_object THEN null; END \$\$; CREATE TABLE IF NOT EXISTS metadata (received_message_id varchar(40) PRIMARY KEY, sent_message_id varchar(40), sender varchar(30), receiver varchar(30), hash_of_order varchar(1000), time_received timestamptz, delivery_status message_status); GRANT ALL ON metadata TO azure_pg_admin; ALTER TABLE metadata OWNER TO azure_pg_admin; ALTER TYPE message_status OWNER TO azure_pg_admin" - id: export-terraform-output name: Export Terraform Output