From 5907facbbc4b17492f4ce3a404e8744b5813c67c Mon Sep 17 00:00:00 2001 From: Sam Ainsworth Date: Thu, 25 Apr 2024 12:04:26 +0100 Subject: [PATCH] Allow TF destroy --- .github/workflows/destroy_workspaces.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/destroy_workspaces.yml b/.github/workflows/destroy_workspaces.yml index b07957f2..e9c8737f 100644 --- a/.github/workflows/destroy_workspaces.yml +++ b/.github/workflows/destroy_workspaces.yml @@ -43,4 +43,6 @@ jobs: - name: Destroy Protected Workspaces run: | unset TF_WORKSPACE + # Set the image URI to allow the workspace cleanup script to run without errors (it expects a value) + set TF_VAR_lambda_image_uri=destroy ./scripts/workspace_cleanup.sh $(terraform-workspace-manager -protected-workspaces=true -aws-account-id=288342028542 -aws-iam-role=integrations-ci)