Resource: aws_inspector_assessment_target

Provides an Inspector Classic Assessment Target

Example Usage

resource "aws_inspector_resource_group" "bar" {
  tags = {
    Name = "foo"
    Env  = "bar"
  }
}

resource "aws_inspector_assessment_target" "foo" {
  name               = "assessment target"
  resource_group_arn = aws_inspector_resource_group.bar.arn
}

Argument Reference

This resource supports the following arguments:

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 Inspector Classic Assessment Targets using their Amazon Resource Name (ARN). For example:

import {
  to = aws_inspector_assessment_target.example
  id = "arn:aws:inspector:us-east-1:123456789012:target/0-xxxxxxx"
}

Using terraform import, import Inspector Classic Assessment Targets using their Amazon Resource Name (ARN). For example:

% terraform import aws_inspector_assessment_target.example arn:aws:inspector:us-east-1:123456789012:target/0-xxxxxxx