aws_inspector_assessment_template

Provides a Inspector assessment template

Example Usage

resource "aws_inspector_assessment_template" "foo" {
  name       = "bar template"
  target_arn = "${aws_inspector_assessment_target.foo.arn}"
  duration   = 3600

  rules_package_arns = [
    "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-9hgA516p",
    "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-H5hpSawc",
    "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ",
    "arn:aws:inspector:us-west-2:758058086616:rulespackage/0-vg5GGHSD",
  ]
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the assessment template.
  • target_arn - (Required) The assessment target ARN to attach the template to.
  • duration - (Required) The duration of the inspector run.
  • rules_package_arns - (Required) The rules to be used during the run.

Attributes Reference

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

  • arn - The template assessment ARN.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/inspector_assessment_template.html