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.GuardDuty-Example-EC2-Compromised
. Because in a Remediation process, Lambda Function has added an IAM Policy, CloudFormation Stack will not be deleted if the IAM Role appears with other IAM Policy.Disable GuardDuty
and click Save
.