This workshop has been deprecated and archived. The new Amazon EKS Workshop is now available at

Uninstall Kubeflow

Delete IAM users, S3 bucket and Kubernetes secret

# delete s3user
aws iam detach-user-policy --user-name s3user --policy-arn arn:aws:iam::aws:policy/AmazonS3FullAccess
aws iam delete-access-key --access-key-id `echo $AWS_ACCESS_KEY_ID_VALUE | base64 --decode` --user-name s3user
aws iam delete-user --user-name s3user
# delete sagemakeruser
aws iam detach-user-policy --user-name sagemakeruser --policy-arn arn:aws:iam::aws:policy/AmazonSageMakerFullAccess
aws iam delete-access-key --access-key-id `echo $AWS_ACCESS_KEY_ID_VALUE | base64 --decode` --user-name sagemakeruser
aws iam delete-user --user-name sagemakeruser
# delete S3 bucket
aws s3 rb s3://$S3_BUCKET --force --region $AWS_REGION
# delete aws-secret
kubectl delete secret/aws-secret
kubectl delete secret/aws-secret -n kubeflow

Next, delete all existing Kubeflow profiles.

kubectl get profile
kubectl delete profile --all

You can delete a Kubeflow deployment by running the kubectl delete command on the manifest according to the deployment option you chose. For example, to delete a vanilla installation, run the following command:

kustomize build deployments/vanilla/ | kubectl delete -f -

This command assumes that you have the repository in the same state as when you installed Kubeflow.

Scale the cluster back to previous size

eksctl scale nodegroup --cluster eksworkshop-eksctl --name $NODEGROUP_NAME --nodes 3