From a8ed688da70450eea684d0ec94784ca98ca6bb97 Mon Sep 17 00:00:00 2001 From: dteller Date: Tue, 9 Jul 2024 12:25:12 -0400 Subject: [PATCH] MINOR: add force_delete variable chore: fmt chore: fix variable name --- main.tf | 1 + variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/main.tf b/main.tf index 5e7d71f..3ad045e 100644 --- a/main.tf +++ b/main.tf @@ -21,6 +21,7 @@ resource "google_bigtable_instance" "bigtable_instance" { project = var.project deletion_protection = var.deletion_protection + force_destroy = var.force_destroy cluster { cluster_id = local.cluster_name diff --git a/variables.tf b/variables.tf index e7ae7a0..2990f40 100644 --- a/variables.tf +++ b/variables.tf @@ -45,3 +45,9 @@ variable "deletion_protection" { description = "set deletion protection on bigtable stack" default = true } + +variable "force_destroy" { + type = bool + description = "set force delete (of backups) on bigtable stack destruction" + default = false +}