---
title: "GuardDuty is not enabled to specific org/region"
canonical: "https://kb.cynergy.app/space/MD/1208614916/GuardDuty%20is%20not%20enabled%20to%20specific%20org%2Fregion"
format: markdown
---
# Description

GuardDuty, an AWS security service, leverages machine learning and threat intelligence to detect threats targeting AWS accounts and workloads. Activating GuardDuty in selected regions or across your organization can enhance threat identification and response, reducing security breach risks and protecting your data from malicious activities.

# Fix - Build time

## Terraform

- **Resource:** aws_guardduty_detector, aws_guardduty_organization_configuration
- **Argument:** *auto_enable* of aws_guardduty_organization_configuration

```
resource "aws_guardduty_detector" "ok" {
  enable = true
}

resource "aws_guardduty_organization_configuration" "example" {
  auto_enable = true
  detector_id = aws_guardduty_detector.ok.id
}
```