Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion terraform/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "random_string" "db-name" {
resource "google_sql_database_instance" "db-inst" {
project = var.project
region = var.region
database_version = "POSTGRES_12"
database_version = var.database_version
name = var.database_name

settings {
Expand Down
7 changes: 7 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ variable "database_tier" {
description = "Size of the Cloud SQL tier. Set to db-custom-1-3840 or a smaller instance for local dev."
}

variable "database_version" {
type = string
default = "POSTGRES_12"

description = "Version of the database to use. Must be at least 12 or higher."
}

variable "database_disk_size_gb" {
type = number
default = 256
Expand Down