From 563b8deba84ae901b0157a168339d6000ac627c0 Mon Sep 17 00:00:00 2001 From: John Skiles Skinner Date: Fri, 7 Jun 2024 17:27:24 -0700 Subject: [PATCH] Add a null_resource with prevent_destroy to Sandbox --- terraform/sandbox/main.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/terraform/sandbox/main.tf b/terraform/sandbox/main.tf index cc99b033b..5a210c402 100644 --- a/terraform/sandbox/main.tf +++ b/terraform/sandbox/main.tf @@ -6,6 +6,13 @@ locals { recursive_delete = true # deprecated, still used in shared modules } +resource "null_resource" "prevent_destroy" { + + lifecycle { + prevent_destroy = false + } +} + module "database" { source = "github.com/GSA-TTS/terraform-cloudgov//database?ref=v1.0.0"