To perform the cleanup of the AWS resources used in this exercise, we perform the following steps in turn:
guardduty-example. This step is required because the CloudFormation Stack cannot be deleted if the S3 bucket has data inside.Remove Custom Threat List used for GuardDuty.
Disable the Amazon GuardDuty service.
Disable GuardDuty and click Save.Delete the CloudFormation Stack. If you can’t delete it, check the first steps again.