Skip to content

AWS CloudWatch Terraform Module

Terraform simplifies the manner we deploy our infrastructure and allows us to maintain it as code.

Using our Terraform Modules, you can easily install and manage Coralogix integrations with AWS services as modules in your infrastructure code.

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

Installation

This module will be installing our Cloudwatch collection lambda.

STEP 1. Add this declaration to your Terraform project.

provider "aws" {
}
module "coralogix-shipper-cloudwatch" {
  source = "coralogix/aws/coralogix//modules/coralogix-aws-shipper"

  coralogix_region   = "EU1"
  integration_type   = "CloudWatch"
  api_key            = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
  application_name   = "cloudwatch-logs"
  subsystem_name     = "logs"
  log_groups         = ["log_gruop"]
}

Notes:

STEP 2. Execute the following:

terraform init
terraform plan
terraform apply

STEP 3. Run terraform destroy when you no longer need these resources.

Additional Resources

Documentation Coralogix Terraform Provider
External Documentation GitHub
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].