Skip to content

Resource: awsInspectorAssessmentTarget

Provides a Inspector assessment target

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
const awsInspectorResourceGroupBar =
  new aws.inspectorResourceGroup.InspectorResourceGroup(this, "bar", {
    tags: {
      Env: "bar",
      Name: "foo",
    },
  });
new aws.inspectorAssessmentTarget.InspectorAssessmentTarget(this, "foo", {
  name: "assessment target",
  resourceGroupArn: awsInspectorResourceGroupBar.arn,
});

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the assessment target.
  • resourceGroupArn (Optional) Inspector Resource Group Amazon Resource Name (ARN) stating tags for instance matching. If not specified, all EC2 instances in the current AWS account and region are included in the assessment target.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - The target assessment ARN.

Import

Inspector Assessment Targets can be imported via their Amazon Resource Name (ARN), e.g.,

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