Resource: aws_detective_organization_configuration

Manages the Detective Organization Configuration in the current AWS Region. The AWS account utilizing this resource must have been assigned as a delegated Organization administrator account, e.g., via the aws_detective_organization_admin_account resource. More information about Organizations support in Detective can be found in the Detective User Guide.

Example Usage

resource "aws_detective_graph" "example" {
  enable = true
}

resource "aws_detective_organization_configuration" "example" {
  auto_enable = true
  graph_arn   = aws_detective_graph.example.id
}

Argument Reference

The following arguments are supported:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import aws_detective_organization_admin_account using the Detective Graph ID. For example:

import {
  to = aws_detective_organization_configuration.example
  id = "00b00fd5aecc0ab60a708659477e9617"
}

Using terraform import, import aws_detective_organization_admin_account using the Detective Graph ID. For example:

% terraform import aws_detective_organization_configuration.example 00b00fd5aecc0ab60a708659477e9617