kubectl delete -f falco-demo/nodejs-bad-rest-api/falco-demo.yml
aws logs delete-log-group --log-group-name falco
kubectl delete -f fluent-bit/kubernetes/
aws iam delete-policy --policy-arn arn:aws:iam::$ACCOUNT_ID:policy/EKS-CloudWatchLogs-devsecops
Deleting the cluster removes the application
Delete the Codebuild, Code commit and pipeline
make tf_destroy
Make sure to delete any other resources created
Verify there are no Load balancers running, ALB or otherwise
aws elbv2 describe-load-balancers --query "LoadBalancers[].LoadBalancerArn"
aws elb describe-load-balancers --query "LoadBalancerDescriptions[].DNSName"
Verify there are no left over EBS volumes from the PVC’s for test application
aws ec2 describe-volumes --filters Name=tag:kubernetes.io/created-for/pv/name,Values=* --query "Volumes[].{ID:VolumeId}"
Delete the EKS Cluster
make clean_cluster
aws s3 rm s3://$NAME_S3_BUCKET --region us-west-2 --recursive
To open the dashboard, on the menu bar in the IDE, choose AWS Cloud9, Go To Your Dashboard.
Do one of the following:
Choose the title inside the card for your Cloud9 instance, and then choose Delete.
Select the Cloud9 instance card, and then choose Delete.
In the Delete dialog box, enter Delete, and then choose Delete.
The delete operation takes a few minutes.