strongjz / devsecopspipeline

DevSecOps Container Pipeline Demo
GNU General Public License v3.0
8 stars 3 forks source link

more delete stuff #6

Open strongjz opened 2 years ago

strongjz commented 2 years ago
  1. Delete falco demo

    kubectl delete -f falco-demo/nodejs-bad-rest-api/falco-demo.yml deployment.apps "falco-demo" deleted

  2. Delete falco log group

  3. delete fluent bit deploy

  4. 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

  1. remove application
  2. check for PVC
  3. remove terraform
  4. Delete terraform s3 bucket
  5. Delete cloud9 instance