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:
Julio Castillo
2023-10-05 17:31:07 +02:00
committed by GitHub
parent 6faf34f54e
commit dfc5023e0b
74 changed files with 468 additions and 330 deletions

View File

@@ -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" {