Overview
This guide describes how to remove the Poolside platform from Amazon Web Services (AWS). The removal process is organized into the following phases:- Destroy deployment resources: Destroy Poolside Kubernetes workloads and the Application Load Balancer (ALB).
- Destroy node groups and add-ons: Destroy EKS node groups and cluster add-ons.
- Destroy infrastructure resources: Destroy remaining infrastructure resources, including the EKS cluster, VPC, and RDS database.
- Clean up deployment artifacts: Remove remaining artifacts, such as certificates and DNS records.
Prerequisites
These instructions assume that you deployed Poolside using the instructions in the Install on AWS guide.Environment configuration
Set the following shell variables before starting. Reuse the values from your initial deployment. The bash commands throughout this guide reference these variables so you can copy and paste them directly. Provided by you:Removal
Step 1: Destroy Poolside deployment resources
Destroy the Poolside deployment resources, such as the Poolside Kubernetes pods and Application Load Balancer (ALB).-
If a bastion host was created during the installation, connect using SSH. If a bastion host was not created, run these steps from a host that has EKS cluster admin access.
-
Run the deployment container:
Ensure you validate the path to
terraform.tfvarsandremote.tfso that they mount correctly into the container. -
Inside the container, run Terraform commands:
Example output:
- Exit the container.
Step 2: Destroy Poolside phase 2 infra resources
Destroy the Poolside infrastructure phase 2 resources, such as the CPU node group, GPU node group (if provisioned), and the cluster add-ons.-
Run the infra-phase-2 container:
Ensure you validate the path to
terraform.tfvarsandremote.tfso that they mount correctly into the container. -
Inside the container, run Terraform commands:
Example output:
- Exit the container.
Step 3: Destroy Poolside infrastructure resources
Destroy the Poolside infrastructure phase 1 resources, such as the EKS cluster, RDS database, and S3 buckets. If a bastion host was previously provisioned, this step will remove it, so run this step from a local machine.-
Run the infra-phase-1 container:
Ensure you validate the path to
terraform.tfvarsandremote.tfso that they mount correctly into the container. -
Inside the container, run Terraform commands:
Example output:
- Exit the container.
Step 4: Clean up deployment artifacts
Clean up any remaining deployment artifacts. You might need to manually remove the following:- DNS record
- SSL certificate
- Container images
- Container repositories
- Local files