Skip to content

Destroy ArcGIS Enterprise on Kubernetes in AWS

Pavel Bobov edited this page Apr 22, 2025 · 3 revisions

This walkthrough will guide you through the process of destroying deployments of ArcGIS Enterprise on Kubernetes in Amazon Web Services (AWS) that were deployed with Deploy ArcGIS Enterprise on Kubernetes in AWS walkthrough.

The walkthrough uses aws/arcgis-enterprise-k8s template.

Duration: about 10 minutes

Prerequisites

Before you begin this walkthrough:

  • A private GitHub repository "gitops-demo" for the site must be created and properly configured.
  • An ArcGIS Enterprise on Kubernetes must be deployed in the site using Deploy ArcGIS Enterprise on Kubernetes in AWS walkthrough.

You will need the following resources and accounts:

  • GitHub.com user account

Step 1: Create and Configure a Codespace Workspace

This step creates a codespace workspace in the "gitops-demo" repository.

1.1 Log in to GitHub.com account

Open the GitHub.com URL in a web browser, log in to your GitHub.com account, and select "gitops-demo" private repository form the "Your repositories" list.

1.2 Create a codespace workspace in the new repository

In the "gitops-demo" repository, click the green "Code" button, switch to the "Codespaces" tab, and click the "Create codespace on main" button. The codespace will be created and opened in a new browser tab.

Note that instead of creating a codespace, you can also reuse the codespace created in Getting Started in AWS walkthrough if it is still available. In this case, you can skip this step and go to Step 1.5.

Step 2: Destroy the ArcGIS Enterprise on Kubernetes Deployment

This step cleans up the AWS resources used by the ArcGIS Enterprise on Kubernetes deployment.

2.1 Backup the deployment

Before destroying the deployment, it is recommended to create a backup of the deployment. The backup will be stored in the site's backups S3 bucket.

Run "enterprise-k8s-aws-backup" workflow in the GitHub Actions tab of the repository with the main branch to backup the deployment.

2.2 Destroy the deployment

Run the "enterprise-k8s-aws-destroy" workflow with the main branch to destroy the base ArcGIS Enterprise deployment.

Note that the workflow does not destroy the deployment's backups.

Step 3: Update the Configuration Files

This step updates the configuration files in the "gitops-demo" repository to remove the ArcGIS Enterprise on Kubernetes deployment from the site.

3.1 Remove the deployment from the site index

In the EXPLORER sidebar of the codespace window, click on the "config" folder and then on "aws" subfolder. Double-click on "site-index.json" file to open it in the editor.

Remove "arcgis-enterprise-k8s" entry from the "deployments" property array in config/aws/site-index.json file.

3.2 Commit and push the changes to the repository

git add --all
git commit -m "Removed arcgis-enterprise-k8s from site-index.json"
git push origin main

Conclusion

This walkthrough demonstrated how to destroy a deployment of ArcGIS Enterprise on Kubernetes in AWS that was deployed with Deploy ArcGIS Enterprise on Kubernetes in AWS walkthrough.

Clone this wiki locally