Skip to content

Commit

Permalink
adding terraform destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyreilly authored May 19, 2022
1 parent 0142dbf commit 16b23a9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/workspace_services/ohdsi/terraform/destroy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export TF_LOG=""

echo "HELLO $TF_VAR_ID ID"

terraform init -input=false -backend=true -reconfigure \
-backend-config="resource_group_name=$TF_VAR_mgmt_resource_group_name" \
-backend-config="storage_account_name=$TF_VAR_mgmt_storage_account_name" \
-backend-config="container_name=$TF_VAR_terraform_state_container_name" \
-backend-config="key=tre-service-ohdsi-$TF_VAR_ID"

terraform destroy -auto-approve

0 comments on commit 16b23a9

Please sign in to comment.