Clean Up
Overview
With our environments configured and secrets created, it's time to clean up the Terraform-defined DevSecOps pipeline infrastructure. This guide provides a step-by-step explanation to ensure a proper cleanup of all resources.
Steps
1. Destroy Repository Resources
Navigate to the repository Terraform directory and destroy the associated resources:
cd terraform/repositories
terraform destroy --auto-approve
2. Destroy EKS Cluster Resources
Navigate to the EKS cluster Terraform directory and destroy its resources:
cd terraform/eks-cluster
terraform destroy --auto-approve