Skip to content

Commit

Permalink
Fix name of db instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jdddog committed Sep 6, 2024
1 parent 20b0d9f commit 6c09ad7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ resource "random_id" "airflow_db_name_suffix" {
}

resource "google_sql_database_instance" "observatory_db_instance" {
name = var.environment == "production" ? "observatory-db-instance" : "observatory-db-instance-${random_id.airflow_db_name_suffix.hex}"
name = var.environment == "production" ? "observatory-db-${var.google_cloud.region}" : "observatory-db-${random_id.airflow_db_name_suffix.hex}"
database_version = "POSTGRES_12"
region = var.google_cloud.region
deletion_protection = var.environment == "production"
Expand Down

0 comments on commit 6c09ad7

Please sign in to comment.