Resource: aws_detective_graph

Provides a resource to manage an AWS Detective Graph. As an AWS account may own only one Detective graph per region, provisioning multiple Detective graphs requires a separate provider configuration for each graph.

Example Usage

resource "aws_detective_graph" "example" {
  tags = {
    Name = "example-detective-graph"
  }
}

Argument Reference

The following arguments are optional:

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_graph using the ARN. For example:

import {
  to = aws_detective_graph.example
  id = "arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d"
}

Using terraform import, import aws_detective_graph using the ARN. For example:

% terraform import aws_detective_graph.example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d