---
title: AWS CloudTrail Terraform module
description: 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.
url: https://coralogix.com/docs/integrations/aws/aws-cloudtrail-terraform-module/
product: ingress
feature: Logs Ingress
feature_id: logs.ingress
feature_identifier: ingress/logs.ingress
last_updated: '2026-07-07'
---

# 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](https://coralogix.com/docs/external/coralogix-aws-shipper).

Our modules are open source and available on our [Github](https://github.com/coralogix/terraform-coralogix-aws/tree/master/modules/coralogix-aws-shipper) and in the [Terraform Registry](https://registry.terraform.io/modules/coralogix/aws/coralogix/latest).

## Installation

Install our [CloudTrail collection Lambda](https://coralogix.com/docs/external/coralogix-aws-shipper) 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

|                        |                                                                                                                                                                                                          |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Documentation          | [Coralogix Terraform Provider](https://coralogix.com/docs/developer-portal/infrastructure-as-code/terraform-provider/coralogix-terraform-provider.md)                                                    |
| External Documentation | [GitHub](https://github.com/coralogix/terraform-coralogix-aws/tree/master/modules/coralogix-aws-shipper)<br />[Terraform Registry](https://registry.terraform.io/modules/coralogix/aws/coralogix/latest) |
