Resource: aws_macie2_custom_data_identifier

Provides a resource to manage an AWS Macie Custom Data Identifier.

Example Usage

resource "aws_macie2_account" "example" {}

resource "aws_macie2_custom_data_identifier" "example" {
  name                   = "NAME OF CUSTOM DATA IDENTIFIER"
  regex                  = "[0-9]{3}-[0-9]{2}-[0-9]{4}"
  description            = "DESCRIPTION"
  maximum_match_distance = 10
  keywords               = ["keyword"]
  ignore_words           = ["ignore"]

  depends_on = [aws_macie2_account.test]
}

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

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

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

% terraform import aws_macie2_custom_data_identifier.example abcd1