Teardown
If you wish to delete your installation of CircleCI Server, please let us know first in case there are any specific, supplementary steps required for your installation. Below is our basic step by step guide to tearing down an installation of CircleCI Server that was made with Terraform:
-
First you need to manually disable the termination protection on the Services machine from the AWS Management Console (If you set
services_disable_api_termination = "false"
in yourterraform.tfvars
file, skip this step). To do this:-
Navigate to the EC2 Dashboard and locate the Services machine instance
-
Click to select it
-
-
Click Actions > Instance Settings > Change Termination Protection
-
Navigate to the S3 dashboard, locate the S3 bucket associated with your CircleCI cluster and delete the bucket and its contents (If you set
force_destroy_s3_bucket = "true"
in yourterraform.tfvars
file, skip this step). -
From a terminal, navigate to your clone of our
enterprise-setup
repo and runterraform destroy
to destroy all EC2 instances, IAM roles, ASGs and Launch configurations created byterraform apply
.