Server Cleanup
DIGIT Infrastructure - Cleanup & Uninstallation
As you wrap up your work with DIGIT, ensuring a smooth and error-free cleanup of the resources is crucial. The regular monitoring of the GitHub Actions workflow's output is essential during the destruction process. Watch out for any error messages or signs of issues. A successful job completion will be confirmed by a success message in the GitHub Actions window, indicating that the infrastructure has been effectively destroyed.
When you are ready to remove DIGIT and clean up the resources it created, proceed with executing the terraform_infra_destruction job. This action is designed to dismantle all set up resources, clearing the environment neatly. We hope your experience with DIGIT was positive and that this guide makes the uninstallation process straightforward.
Steps to create the Seed Data Dump
Check the available pods under the playground namespace
This will return a list of running pods within the playground namespace. You should see an output similar to this:
To further verify that this is the correct pod, you can describe the pod details using:
This will give you details about the containers running inside the pod, logs, events, and other metadata.
Once you've identified the correct pod, you need to access it via an interactive shell session:
or (if Bash is available in the container)
Once inside the pod, replace
{PLAYGROUND_POD_NAME}
,{DATABASE_HOST}
, {DATABASE_USERNAME}
, {DB_NAME}
in command given below and run it generate the seed data dump:
This will create a file named seed_data_dump_1_7.sql
inside the pod’s filesystem.
Once the dump is completed, exit the pod shell by running:
Now that the dump file is available inside the pod, copy it to your local system using:
Steps to Destroy the Server
To initiate the destruction of a Terraform-managed infrastructure, follow these steps:
Navigate to Actions.
Click DIGIT-Install workflow.
Select Run workflow.
When prompted, type 'destroy'. This action starts the terraform_infra_destruction job.
You can observe the progress of the destruction job in the actions window.
Last updated
Was this helpful?