Skip to content

Commit 2624cce

Browse files
committed
Adding cleanup scripts
1 parent fc5bed1 commit 2624cce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

aws/cleanup-aws-autoscaling-and-helm.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,12 @@ sleep 5 # Prevents race condition - command below may error out because it's sti
5050

5151
aws iam delete-policy \
5252
--policy-arn arn:aws:iam::${ACCOUNT_ID}:policy/AmazonEKSClusterAutoscalerPolicy
53+
54+
55+
echo "Cleanup CSI driver SA"
56+
57+
eksctl delete iamserviceaccount \
58+
--cluster $CLUSTERNAME \
59+
--name ebs-csi-controller-sa \
60+
--namespace kube-system \
61+
--region $AWS_REGION

0 commit comments

Comments
 (0)