-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshutdown.sh
More file actions
executable file
·11 lines (10 loc) · 885 Bytes
/
shutdown.sh
File metadata and controls
executable file
·11 lines (10 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
export AWS_ACCESS_KEY_ID="AKIAUMRLZOPXDQIC543W"
export AWS_SECRET_ACCESS_KEY="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"
export KOPS_STATE_STORE=s3://delcachokops
export NAME=k8s.dev.bayescluster.com
aws iam detach-role-policy --role-name nodes.k8s.dev.bayescluster.com --policy-arn arn:aws:iam::aws:policy/AmazonS3FullAccess
aws iam detach-role-policy --role-name nodes.k8s.dev.bayescluster.com --policy-arn arn:aws:iam::aws:policy/AmazonSageMakerFullAccess
aws iam detach-role-policy --role-name nodes.k8s.dev.bayescluster.com --policy-arn arn:aws:iam::301813298158:policy/SagemakerExecutionPolicy
aws iam detach-role-policy --role-name nodes.k8s.dev.bayescluster.com --policy-arn arn:aws:iam::301813298158:policy/AccessToECR
aws iam detach-role-policy --role-name nodes.k8s.dev.bayescluster.com --policy-arn arn:aws:iam::aws:policy/IAMReadOnlyAccess
kops delete cluster $NAME --yes