» aws_guardduty_detector

Provides a resource to manage a GuardDuty detector.

» Example Usage

resource "aws_guardduty_detector" "MyDetector" {
  enable = true

» Argument Reference

The following arguments are supported:

  • enable - (Optional) Enable monitoring and feedback reporting. Setting to false is equivalent to "suspending" GuardDuty. Defaults to true.

» Attributes Reference

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

» Import

GuardDuty detectors can be imported using the detector ID, e.g.

$ terraform import aws_guardduty_detector.MyDetector 00b00fd5aecc0ab60a708659477e9617