Removing an AWS Installation(3.1)

To uninstall  in AWS, do the following steps:


  1. Delete all ECDs from mzonline by repeating the kubectl delete command for all ECDs.

    $ kubectl get ecd -n <namespace>
    $ kubectl delete ecd <ecd> -n <namespace>


  2. Uninstalling 

    # Display a list of the installed releases
    $ helm list --namespace <namespace>
    
    # Unistall the platform and the ec
    $ helm uninstall platform --namespace <namespace>
    $ helm uninstall ec --namespace <namespace>
  3. Uninstall AWS Helpers

    Note!

    By default, the AWS helpers are installed in the **default** namespace.

    # Display a list of the installed releases
    $ helm list --namespace <namespace>
    
    # Unistall the releases
    $ helm uninstall efs-provisioner --namespace <namespace>
    $ helm uninstall external-dns --namespace <namespace>
    $ helm uninstall aws-alb-ingress-controller --namespace <namespace>
  4. Uninstalling AWS Additional Resources

    From the terraform directory
    $ cd /<path-to-terraform folder>
    $ terraform destroy
  5. Uninstall VPC and EKS cluster

    #default the mz-eks
    $ eksctl delete cluster --name=<cluster-name>