Terraform code that creates a solution that sends an email when an Amazon GuardDuty Finding is registered. It implements the following resources:
- An Event Rule monitors Amazon GuardDuty findings events.
- When an event is registered, the Event Rule sends it to the SNS Topic, applying input and output transformation in order to extract the most valuable information of the event.
- The SNS topic notifies the subscribed emails.
-
Clone the repository
$ git clone https://github.com/lorenzocampo/alerting-guardduty-findings.git
-
Initialize a working directory containing Terraform configuration files:
$ terraform init
-
Create an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure
$ terraform plan
-
Executes the actions proposed in a Terraform plan
$ terraform apply