Resource: aws_inspector2_delegated_admin_account

Terraform resource for managing an Amazon Inspector Delegated Admin Account.

Example Usage

Basic Usage

data "aws_caller_identity" "current" {}

resource "aws_inspector2_delegated_admin_account" "example" {
  account_id = data.aws_caller_identity.current.account_id
}

Argument Reference

The following arguments are required:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

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