Resource: aws_detective_member

Provides a resource to manage an Amazon Detective Member.

Example Usage

resource "aws_detective_graph" "example" {}

resource "aws_detective_member" "example" {
  account_id                 = "AWS ACCOUNT ID"
  email_address              = "EMAIL"
  graph_arn                  = aws_detective_graph.example.id
  message                    = "Message of the invitation"
  disable_email_notification = true
}

Argument Reference

This resource supports the following arguments:

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_member using the ARN of the graph followed by the account ID of the member account. For example:

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

Using terraform import, import aws_detective_member using the ARN of the graph followed by the account ID of the member account. For example:

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