Rename modules/cloudsql-instance deletion protection variables (#2135)
* Rename Cloud SQL deletion protection variables * Fix tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright 2023 Google LLC
|
||||
* Copyright 2024 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -76,20 +76,6 @@ variable "databases" {
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "deletion_protection" {
|
||||
description = "Prevent terraform from deleting instances."
|
||||
type = bool
|
||||
default = true
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "deletion_protection_enabled" {
|
||||
description = "Set Google's deletion protection attribute which applies across all surfaces (UI, API, & Terraform)."
|
||||
type = bool
|
||||
default = true
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "disk_autoresize_limit" {
|
||||
description = "The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit."
|
||||
type = number
|
||||
@@ -126,6 +112,13 @@ variable "flags" {
|
||||
default = null
|
||||
}
|
||||
|
||||
variable "gcp_deletion_protection" {
|
||||
description = "Set Google's deletion protection attribute which applies across all surfaces (UI, API, & Terraform)."
|
||||
type = bool
|
||||
default = true
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "insights_config" {
|
||||
description = "Query Insights configuration. Defaults to null which disables Query Insights."
|
||||
type = object({
|
||||
@@ -255,6 +248,13 @@ variable "ssl" {
|
||||
}
|
||||
}
|
||||
|
||||
variable "terraform_deletion_protection" {
|
||||
description = "Prevent terraform from deleting instances."
|
||||
type = bool
|
||||
default = true
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "tier" {
|
||||
description = "The machine type to use for the instances."
|
||||
type = string
|
||||
|
||||
Reference in New Issue
Block a user