terraform-modules/postgres/variables.tf

56 lines
705 B
HCL

variable "project_id" {
type = string
}
variable "name" {
type = string
}
variable "ver" {
type = number
}
variable "flavor" {
type = object({
cpu = number,
ram = number
})
}
variable "storage" {
type = object({
class = string,
size = number
})
}
variable "replicas" {
type = number
}
variable "acl" {
type = list(string)
}
variable "backup_schedule" {
type = string
}
variable "users" {
description = "List of users"
type = list(object({
username = string
roles = set(string)
}))
default = []
}
variable "databases" {
description = "List of databases"
type = list(object({
name = string
owner = string
}))
default = []
}