Resource: aws_inspector2_enabler

Terraform resource for enabling Amazon Inspector resource scans.

This resource must be created in the Organization's Administrator Account.

Example Usage

Basic Usage

resource "aws_inspector2_enabler" "example" {
  account_ids    = ["123456789012"]
  resource_types = ["EC2"]
}

For the Calling Account

data "aws_caller_identity" "current" {}

resource "aws_inspector2_enabler" "test" {
  account_ids    = [data.aws_caller_identity.current.account_id]
  resource_types = ["ECR", "EC2"]
}

Argument Reference

The following arguments are required:

Attribute Reference

This resource exports no additional attributes.

Timeouts

Configuration options: