Part 5: Deprovision
What Will You Do¶
In this part of the self-paced exercise, you will deprovision your EKS cluster and all infrastructure that was deployed to your AWS account.
Deprovision¶
First, you can delete the EFS mount points that were previously created by using the command below. Be sure to update the mount-target-id with the ID of the mount you created. Run this command for each mount point that was created.
aws efs delete-mount-target --mount-target-id fsmt-05acf22f3a5fabd4d
- Run the following command to remove the EFS file system. Be sure to update the file-system-id with the ID of the file system you created.
aws efs delete-file-system --file-system-id fs-0e85e5697ed5a7121
- Run the following command to remove the security group. Be sure to update the group-id with the ID of the security group you created.
aws ec2 delete-security-group --group-id sg-01a339b1b605b248e
You can deprovision/delete your EKS cluster using the RCTL CLI.
rctl delete cluster eks-efs-cluster
Alternatively, you can also perform this from the web console
- Click on the gear icon on the far right of the cluster
- Select "Delete" and acknowledge
NOTE that the delete operation can take some time so that it can delete all the infrastructure associated with your EKS Cluster.