Skip to content

Commit

Permalink
Merge pull request #14 from dteller/AddForceDestroy
Browse files Browse the repository at this point in the history
MINOR: DSD-4256: add force_delete variable
  • Loading branch information
dteller authored Jul 9, 2024
2 parents ab55a3a + a8ed688 commit 31c1c71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 31c1c71

Please sign in to comment.