Configures an AWS GuardDuty Organization Admin Account, including the necessary organization and detector resources.

Terraform Template

resource "aws_guardduty_detector" "example" {
}

resource "aws_guardduty_organization_admin_account" "example" {
  admin_account_id = "123456789012"
  depends_on = ["aws_organizations_organization.example"]
}

resource "aws_organizations_organization" "example" {
  aws_service_access_principals = ["guardduty.amazonaws.com"]
  feature_set = "ALL"
}