Terraform module to create a standard GuardDuty configuration in a single AWS account. These include a GuardDuty detector, filter, ipset, threatintelset, and publshing destination. GuardDuty configurations that require multiple AWS accounts are not included in this module, and the terraform code for those configurations has been implemented in seperate submodeles (see the modules section of this project).
- Creates a GuardDuty detector for this account
- Creates a GuardDuty filter for this account if the filter var is not null.
- Creates a GuardDuty ipset for this account if the ipset var is not null.
- Creates a GuardDuty threatintelset for this account if the threatintelset var is not null.
- Creates a GuardDuty publishing_destination for this account if the publishing_destination var is not null.
Prerequisites: This publishing_destination resource assumes the S3 bucket associated with the destination arn exists and the required policies have been created to allow GuardDuty to access the bucket. It also assumes the kms key associated with the kms key arn exists and has a policy that allows GuardDuty to to use it.
You can find example implementations of this module in the tests folder (create_all_guardduty_standard_resources).
Name | Version |
---|---|
terraform | >= 0.12 |
aws | >= 3.0 |
Name | Version |
---|---|
aws | >= 3.0 |
Name | Type |
---|
Name | Description | Type | Default | Required |
---|---|---|---|---|
classification_jobs | Macie classification job | list(object({ |
[] |
no |
custom_data_identifiers | AWS Macie Custom Data Identifier. | list(object({ |
[] |
no |
finding_publishing_frequency | (Optional) Specifies how often to publish updates to policy findings for the account. This includes publishing updates to AWS Security Hub and Amazon EventBridge (formerly called Amazon CloudWatch Events). Valid values are FIFTEEN_MINUTES, ONE_HOUR or SIX_HOURS. | string |
"SIX_HOURS" |
no |
findings_filters | Amazon Macie Findings Filter. | list(object({ |
[] |
no |
status | (Optional) Specifies the status for the account. To enable Amazon Macie and start all Macie activities for the account, set this value to ENABLED. Valid values are ENABLED or PAUSED. | string |
"ENABLED" |
no |
Name | Description |
---|---|
account | Macie account |
classification_job | Macie classification_job |
custom_data_identifier | Macie custom_data_identifier |
findings_filter | Macie findings_filter |