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" }
If you want to use SSM in your integration you need to deploy our SSM layer:
provider "aws" { } module "lambda-secretLayer" { source = "coralogix/aws/coralogix//modules/lambda-secretLayer" } output "layer_arn" { value = module.lambda-secretLayer.lambda_layer_version_arn }
Copy the output (the layer arn) and past it into the layer_arn
variable in your integration.
Documentation | Coralogix Terraform Provider |
External Documentation | GitHub 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 [email protected].