Resource: aws_macie2_findings_filter

Provides a resource to manage an Amazon Macie Findings Filter.

Example Usage

resource "aws_macie2_account" "example" {}

resource "aws_macie2_findings_filter" "test" {
  name        = "NAME OF THE FINDINGS FILTER"
  description = "DESCRIPTION"
  position    = 1
  action      = "ARCHIVE"
  finding_criteria {
    criterion {
      field = "region"
      eq    = [data.aws_region.current.name]
    }
  }
  depends_on = [aws_macie2_account.test]
}

Argument Reference

This resource supports the following arguments:

The finding_criteria object supports the following:

The criterion object supports the following:

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 aws_macie2_findings_filter using the id. For example:

import {
  to = aws_macie2_findings_filter.example
  id = "abcd1"
}

Using terraform import, import aws_macie2_findings_filter using the id. For example:

% terraform import aws_macie2_findings_filter.example abcd1