Add KMS on CloudSQL module

This commit is contained in:
Lorenzo Caggioni
2022-04-12 19:01:34 +02:00
parent cde0b5d051
commit c7c77541fb
5 changed files with 92 additions and 11 deletions

View File

@@ -76,6 +76,12 @@ variable "disk_type" {
default = "PD_SSD"
}
variable "encryption_key_name" {
description = "The full path to the encryption key used for the CMEK disk encryption."
type = string
default = null
}
variable "flags" {
description = "Map FLAG_NAME=>VALUE for database-specific tuning."
type = map(string)
@@ -115,9 +121,12 @@ variable "region" {
}
variable "replicas" {
description = "Map of NAME=>REGION for additional read replicas. Set to null to disable replica creation."
type = map(any)
default = null
description = "Map of NAME=> {REGION, KMS_KEY} for additional read replicas. Set to null to disable replica creation."
type = map(object({
region = string
encryption_key_name = string
}))
default = {}
}
variable "tier" {