Resource: aws_inspector2_member_association

Terraform resource for associating accounts to existing Inspector instances.

Example Usage

Basic Usage

resource "aws_inspector2_member_association" "example" {
  account_id = "123456789012"
}

Argument Reference

The following argument is required:

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 Amazon Inspector Member Association using the account_id. For example:

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

Using terraform import, import Amazon Inspector Member Association using the account_id. For example:

% terraform import aws_inspector2_member_association.example 123456789012