Resource: aws_macie2_member

Provides a resource to manage an Amazon Macie Member.

Example Usage

resource "aws_macie2_account" "example" {}

resource "aws_macie2_member" "example" {
  account_id                            = "AWS ACCOUNT ID"
  email                                 = "EMAIL"
  invite                                = true
  invitation_message                    = "Message of the invitation"
  invitation_disable_email_notification = true
  depends_on                            = [aws_macie2_account.example]
}

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_macie2_member using the account ID of the member account. For example:

import {
  to = aws_macie2_member.example
  id = "123456789012"
}

Using terraform import, import aws_macie2_member using the account ID of the member account. For example:

% terraform import aws_macie2_member.example 123456789012