Make deletion protection consistent across all modules (#1735)
* Expose deletion_protection in GKE modules * Make deletion protection consistent across all modules * Add deletion_protection option to blueprints * Fix blueprints tests * Fix types * Update READMEs * Fix dp readme * Fix cmek blueprint default deletion_protection * Fix blueprints tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Copyright 2022 Google LLC
|
||||
* Copyright 2023 Google LLC
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -80,15 +80,17 @@ variable "databases" {
|
||||
}
|
||||
|
||||
variable "deletion_protection" {
|
||||
description = "Allow terraform to delete instances."
|
||||
description = "Prevent terraform from deleting instances."
|
||||
type = bool
|
||||
default = false
|
||||
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 = false
|
||||
default = true
|
||||
nullable = false
|
||||
}
|
||||
|
||||
variable "disk_size" {
|
||||
|
||||
Reference in New Issue
Block a user