From f34239b8b4b3f11ddf47efe0c34fec485c1aa039 Mon Sep 17 00:00:00 2001 From: Mark Hobson Date: Wed, 18 Dec 2024 17:43:32 +0000 Subject: [PATCH] Correct secret version resource name --- cloud/schemes/cloud-sql/main.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cloud/schemes/cloud-sql/main.tf b/cloud/schemes/cloud-sql/main.tf index f98afca..96f0671 100644 --- a/cloud/schemes/cloud-sql/main.tf +++ b/cloud/schemes/cloud-sql/main.tf @@ -57,11 +57,16 @@ resource "google_secret_manager_secret" "database_password" { } } -resource "google_secret_manager_secret_version" "database_password_version" { +resource "google_secret_manager_secret_version" "database_password" { secret = google_secret_manager_secret.database_password.id secret_data = google_sql_user.schemes.password } +moved { + from = google_secret_manager_secret_version.database_password_version + to = google_secret_manager_secret_version.database_password +} + resource "google_service_account" "cloud_sql_schemes" { account_id = "cloud-sql-schemes" }