Terraform resource for managing an Amazon Inspector Delegated Admin Account.
data "aws_caller_identity" "current" {}
resource "aws_inspector2_delegated_admin_account" "example" {
account_id = data.aws_caller_identity.current.account_id
}
The following arguments are required:
account_id
- (Required) Account to enable as delegated admin account.This resource exports the following attributes in addition to the arguments above:
relationship_status
- Status of this delegated admin account.create
- (Default 15m
)delete
- (Default 15m
)In Terraform v1.5.0 and later, use an import
block to import Inspector Delegated Admin Account using the account_id
. For example:
import {
to = aws_inspector2_delegated_admin_account.example
id = "012345678901"
}
Using terraform import
, import Inspector Delegated Admin Account using the account_id
. For example:
% terraform import aws_inspector2_delegated_admin_account.example 012345678901