# Terraform configuration to enable AWS GuardDuty.

provider "aws" {
  region = "us-east-1"
}

# --- 1. Create GuardDuty Detector ---
resource "aws_guardduty_detector" "main" {
  enable = true

  tags = {
    Name = "MyTerraformGuardDutyDetector"
  }
}

# --- Outputs ---
output "guardduty_detector_id" {
  value       = aws_guardduty_detector.main.id
  description = "The ID of the GuardDuty detector."
}
