Uninstall Process: Removing LHO from your AWS account
This document provides step-by-step instructions for uninstalling Lakehouse Optimizer from your environment. Properly uninstalling the software ensures that all components are removed from your system. Before uninstalling LHO, ensure that you have administrative privileges.
Log in to LHO and navigate to Settings > Provisioning & Permissions
Unpublish all published workspaces by toggling the switch off next to each workspace name.
This action will remove the LHO Agent from Databricks, leaving no trace behind.Log in to your AWS CloudShell environment.
Download the installation archive from the deployment backup S3 bucket.
During deployment, an S3 bucket is created to store all deployment files.
You can find this bucket in your S3 console, in the region where LHO was deployed.
The bucket is named
<name-prefix>-tfstate-bkp, where<name-prefix>corresponds to thename-prefixvariable provided during deployment.The
name-prefixcan be derived from the Route 53 A-record that points to your LHO instance. For example, if the URL ishttps://lho.test.com, then thename-prefixislho.
If you're using AWS CloudShell for this process, upload the installation archive to your CloudShell environment.
Unzip the archive in a directory of your choice within the environment.
unzip install-files-backup.zipRun
terraform initin the directory where you unzipped the archive.Run
terraform destroyin the same directory to begin tearing down the deployment.
When prompted for the Databricks service principal token, leave the field empty — it is not required for the destroy operation.This will remove all resources created during the deployment, including the EC2 instance, IAM profile, SQL database, and others.
Navigate to DynamoDB and delete all tables with names starting with
bplm-.Navigate to Amazon SQS and delete all queues with names containing/starting with
bplm.Remove the
bp-lakehouse-monitorvolume from yourmainUnity Catalog inside your Databricks environmentRemove the LHO IAM user from IAM inside your AWS console.
Remove any DynamoDB tables and SQS queues starting with
bplm.