Provides a resource to manage an Amazon Detective Invitation Accepter. Ensure that the accepter is configured to use the AWS account you wish to _accept_ the invitation from the primary graph owner account.
resource "aws_detective_graph" "primary" {}
resource "aws_detective_member" "primary" {
account_id = "ACCOUNT ID"
email_address = "EMAIL"
graph_arn = aws_detective_graph.primary.id
message = "Message of the invite"
}
resource "aws_detective_invitation_accepter" "member" {
provider = "awsalternate"
graph_arn = aws_detective_graph.primary.graph_arn
depends_on = [aws_detective_member.primary]
}
This resource supports the following arguments:
graph_arn
- (Required) ARN of the behavior graph that the member account is accepting the invitation for.This resource exports the following attributes in addition to the arguments above:
id
- Unique identifier (ID) of the Detective invitation accepter.In Terraform v1.5.0 and later, use an import
block to import aws_detective_invitation_accepter
using the graph ARN. For example:
import {
to = aws_detective_invitation_accepter.example
id = "arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d"
}
Using terraform import
, import aws_detective_invitation_accepter
using the graph ARN. For example:
% terraform import aws_detective_invitation_accepter.example arn:aws:detective:us-east-1:123456789101:graph:231684d34gh74g4bae1dbc7bd807d02d