Skip to content

AWS CloudTrail Terraform module

Using Coralogix Terraform Modules, you can easily install and manage Coralogix integrations with AWS services as modules in your infrastructure code. This tutorial demonstrates how to install our CloudTrail Collection Lambda.

Our modules are open source and available on our Github and in the Terraform Registry.

Installation

Install our CloudTrail collection Lambda by adding this declaration to your Terraform project:

module "coralogix-shipper-cloudtrail" {
  source = "coralogix/aws/coralogix//modules/coralogix-aws-shipper"

  coralogix_region   = "EU1"
  integration_type   = "CloudTrail"
  api_key            = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
  application_name   = "cloudtrail-application"
  subsystem_name     = "cloudtrail-subsystem"
  s3_bucket_name     = "bucket-name"
}

Best Practices

Customers should add environment variable CORALOGIX_BUFFER_SIZE with value 268435456.

Additional Resources

DocumentationCoralogix Terraform Provider
External DocumentationGitHub
Terraform Registry