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.
resource "aws_detective_graph" "example" {
tags = {
Name = "example-detective-graph"
}
}
The following arguments are optional:
tags
- (Optional) A map of tags to assign to the instance. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
id
- ARN of the Detective Graph.graph_arn
- ARN of the Detective Graph.created_time
- Date and time, in UTC and extended RFC 3339 format, when the Amazon Detective Graph was created.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