Our next-gen architecture is built to help you make sense of your ever-growing data. Watch a 4-min demo video!

Back to All Docs

AWS CloudTrail Terraform Module AWS CloudTrail Terraform Module

Last Updated: Dec. 16, 2023

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.


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


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 support@coralogix.com.

On this page