This workshop has been deprecated and archived. The new Amazon EKS Workshop is now available at www.eksworkshop.com.
Start by deleting the deployment and wait for nodes to be removed by karpenter.
kubectl delete deployment inflate
When there is no more nodes managed by karpenter you can remove it and associated infrastructure.
kubectl get nodes -l karpenter.sh/provisioner-name
You can cleanup the rest via those commands:
helm uninstall karpenter --namespace karpenter
eksctl delete iamserviceaccount --cluster ${CLUSTER_NAME} --name karpenter --namespace karpenter
aws cloudformation delete-stack --stack-name Karpenter-${CLUSTER_NAME}