Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ resource "google_bigtable_instance" "bigtable_instance" {
instance_type = "PRODUCTION"
project = var.project

deletion_protection = var.deletion_protection

cluster {
cluster_id = local.cluster_name
zone = var.zone
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ variable "cloud_bigtable_admin_members" {
description = "The list of members to bind to bigtable admin role"
default = []
}

variable "deletion_protection" {
type = bool
description = "set deletion protection on bigtable stack"
default = true
}