Open strongjz opened 2 years ago
Delete falco demo
kubectl delete -f falco-demo/nodejs-bad-rest-api/falco-demo.yml deployment.apps "falco-demo" deleted
Delete falco log group
delete fluent bit deploy
remove fluent bit iam
aws iam detach-role-policy --role-name $(shell aws eks describe-nodegroup --cluster-name devsecops --nodegroup-name node-group-1 --region ${AWS_DEFAULT_REGION} | jq .nodegroup.nodeRole -r | cut -d/ -f2) --policy-arn $(shell aws iam list-policies | jq -r '.[][] | select(.PolicyName == "EKS-CloudWatchLogs-${EKS_CLUSTER_NAME}") | .Arn') || true
Delete falco demo
kubectl delete -f falco-demo/nodejs-bad-rest-api/falco-demo.yml deployment.apps "falco-demo" deleted
Delete falco log group
delete fluent bit deploy
remove fluent bit iam
aws iam detach-role-policy --role-name $(shell aws eks describe-nodegroup --cluster-name devsecops --nodegroup-name node-group-1 --region ${AWS_DEFAULT_REGION} | jq .nodegroup.nodeRole -r | cut -d/ -f2) --policy-arn $(shell aws iam list-policies | jq -r '.[][] | select(.PolicyName == "EKS-CloudWatchLogs-${EKS_CLUSTER_NAME}") | .Arn') || true