Skip to content

Commit c9473b3

Browse files
authored
chore: revert "feat: make force_destroy configurable (#703)" (#704)
This reverts commit da45049.
1 parent da45049 commit c9473b3

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

storage/remote_terraform_backend_template/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ To run this example, do the following:
1616

1717
terraform init -migrate-state
1818

19+
20+
1921
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
2022
## Inputs
2123

22-
| Name | Description | Type | Default | Required |
23-
|------|-------------|------|---------|:--------:|
24-
| terraform\_state\_bucket\_force\_destroy | Set this to true to enable destroying the Terraform remote state Cloud Storage bucket | `bool` | `false` | no |
24+
No inputs.
2525

2626
## Outputs
2727

storage/remote_terraform_backend_template/main.tf

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,14 @@ resource "google_storage_bucket" "default" {
2222
name = "${random_id.default.hex}-terraform-remote-backend"
2323
location = "US"
2424

25-
force_destroy = var.terraform_state_bucket_force_destroy
25+
force_destroy = false
2626
public_access_prevention = "enforced"
2727
uniform_bucket_level_access = true
2828

2929
versioning {
3030
enabled = true
3131
}
3232
}
33-
34-
variable "terraform_state_bucket_force_destroy" {
35-
description = "Set this to true to enable destroying the Terraform remote state Cloud Storage bucket"
36-
default = false
37-
type = bool
38-
}
39-
4033
# [END storage_bucket_tf_with_versioning_pap_uap_no_destroy]
4134

4235
# [START storage_remote_backend_local_file]

0 commit comments

Comments
 (0)