Provides a resource to manage a GuardDuty detector.
NOTE: Deleting this resource is equivalent to "disabling" GuardDuty for an AWS region, which removes all existing findings. You can set the
enable
attribute tofalse
to instead "suspend" monitoring and feedback reporting while keeping existing data. See the Suspending or Disabling Amazon GuardDuty documentation for more information.
resource "aws_guardduty_detector" "MyDetector" { enable = true }
The following arguments are supported:
enable
- (Optional) Enable monitoring and feedback reporting. Setting to false
is equivalent to "suspending" GuardDuty. Defaults to true
. In addition to all arguments above, the following attributes are exported:
id
- The ID of the GuardDuty detector account_id
- The AWS account ID of the GuardDuty detector GuardDuty detectors can be imported using the detector ID, e.g.
$ terraform import aws_guardduty_detector.MyDetector 00b00fd5aecc0ab60a708659477e9617
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/guardduty_detector.html