Terraform resource for associating accounts to existing Inspector instances.
resource "aws_inspector2_member_association" "example" {
account_id = "123456789012"
}
The following argument is required:
account_id
- (Required) ID of the account to associateThis resource exports the following attributes in addition to the arguments above:
delegated_admin_account_id
- Account ID of the delegated administrator accountrelationship_status
- Status of the member relationshipupdated_at
- Date and time of the last update of the relationshipIn 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