Resource: aws_securitylake_custom_log_source

Terraform resource for managing an AWS Security Lake Custom Log Source.

Example Usage

Basic Usage

resource "aws_securitylake_custom_log_source" "example" {
  source_name    = "example-name"
  source_version = "1.0"
  event_classes  = ["FILE_ACTIVITY"]

  configuration {
    crawler_configuration {
      role_arn = aws_iam_role.custom_log.arn
    }

    provider_identity {
      external_id = "example-id"
      principal   = "123456789012"
    }
  }

  depends_on = [aws_securitylake_data_lake.example]
}

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 log sources using the source name. For example:

import {
  to = aws_securitylake_custom_log_source.example
  id = "example-name"
}

Using terraform import, import Custom log sources using the source name. For example:

% terraform import aws_securitylake_custom_log_source.example example-name