-
Notifications
You must be signed in to change notification settings - Fork 2
Destroy ArcGIS Enterprise on Kubernetes in AWS
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
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
This step creates a codespace workspace in the "gitops-demo" repository.
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.
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.
This step cleans up the AWS resources used by the ArcGIS Enterprise on Kubernetes 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.
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.
This step updates the configuration files in the "gitops-demo" repository to remove the ArcGIS Enterprise on Kubernetes deployment from the site.
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.
git add --all
git commit -m "Removed arcgis-enterprise-k8s from site-index.json"
git push origin main
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.