Resource: aws_securitylake_subscriber

Terraform resource for managing an AWS Security Lake Subscriber.

Example Usage

resource "aws_securitylake_subscriber" "example" {
  subscriber_name = "example-name"
  access_type     = "S3"

  source {
    aws_log_source_resource {
      source_name    = "ROUTE53"
      source_version = "1.0"
    }
  }
  subscriber_identity {
    external_id = "example"
    principal   = "1234567890"
  }

  depends_on = [aws_securitylake_data_lake.example]
}

Argument Reference

This resource supports the following arguments:

Subsciber Identity support the following:

Sources support the following:

AWS Log Source Resource support the following:

Custom Log Source Resource support the following:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import Security Lake subscriber using the subscriber ID. For example:

import {
  to = aws_securitylake_subscriber.example
  id = "9f3bfe79-d543-474d-a93c-f3846805d208"
}

Using terraform import, import Security Lake subscriber using the subscriber ID. For example:

% terraform import aws_securitylake_subscriber.example 9f3bfe79-d543-474d-a93c-f3846805d208