Skip to content

Commit

Permalink
Merge pull request #4763 from ministryofjustice/delete-namespace-update
Browse files Browse the repository at this point in the history
Removing unneeded variable
  • Loading branch information
tom-j-smith authored Sep 8, 2023
2 parents c4f5666 + 2c589b3 commit dc0c72d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ review_in: 6 months

# Manually Delete Namespace Resources

In the event that you need to manually delete a cloud-platform-environments namespace, for example production namespaces which our
In the event that you need to manually delete a cloud-platform-environments namespace, for example production namespaces which our
namespace-deleter pipeline is configured to skip, you can do so by following the steps below.


## Prerequisites

Ensure you have the following installed on your machine:
Expand All @@ -21,13 +20,12 @@ Ensure you have the following installed on your machine:

## Environment Variables

In addition to having your AWS profile configured, the following environment variables must be set before executing a
In addition to having your AWS profile configured, the following environment variables must be set before executing a
namespace deletion:

```bash
TF_VAR_cluster_name # e.g. "cp-1902-02" to get the vpc details for some modules like rds, es
TF_VAR_cluster_state_bucket # State where the cluster state is stored
TF_VAR_cluster_state_key # folder name/state key inside the state bucket where cluster state is stored
TF_VAR_github_owner # Github owner: ministryofjustice
TF_VAR_github_token # Personal access token with repo scope to push github action secrets
TF_VAR_kubernetes_cluster # Full name of the Cluster e.g. XXXXXX.gr7.eu-west2.eks.amazonaws.com
Expand Down Expand Up @@ -60,4 +58,4 @@ cloud-platform environment destroy \
--skip-prod-destroy=true # Set this flag to false to destroy namespace marked :is-production
```
The command will then destroy all terraform and kubernetes resources associated with the namespace, and finally will delete
the namespace itself.
the namespace itself.

0 comments on commit dc0c72d

Please sign in to comment.