Skip to content

Commit

Permalink
Correct secret version resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
markhobson committed Dec 18, 2024
1 parent 196d46c commit f34239b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cloud/schemes/cloud-sql/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit f34239b

Please sign in to comment.