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/s3"

  coralogix_region   = "Europe"
  private_key        = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
  application_name   = "cloudtrail"
  subsystem_name     = "logs"
  s3_bucket_name     = "test-bucket-name"
  integration_type   = "cloudtrail"
}

Best Practices

Customers should add environment variable CORALOGIX_BUFFER_SIZE with value 268435456.

AWS Secrets Manager

Deploy the AWS Secrets Manager Lambda layer for any of our AWS integrations. Find out more here.

Additional Resources

DocumentationCoralogix Terraform Provider
External DocumentationGitHub
Terraform Registry

Support

Need help?

Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.

Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].