Skip to content

dennischristmann/terraform-coralogix-aws

 
 

Repository files navigation

AWS Coralogix Terraform module

Examples

s3:

provider "aws" {
}

module "coralogix-shipper-s3" {
  source = "coralogix/aws/coralogix//modules/s3"

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

now execute:

$ terraform init
$ terraform plan
$ terraform apply

cloudwatch-logs:

To run this example you need to save this code in Terraform file, and change the values according to our settings.

provider "aws" {
}

module "cloudwatch_logs" {
  source = "coralogix/aws/coralogix//modules/cloudwatch-logs"

  coralogix_region   = "Europe"
  private_key        = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
  application_name   = "cloudwatch"
  subsystem_name     = "logs"
  log_groups         = ["test-log-group"]
}

now execute:

$ terraform init
$ terraform plan
$ terraform apply

Run terraform destroy when you don't need these resources.

kinesis:

provider "aws" {
}

module "kinesis" {
  source = "coralogix/aws/coralogix//modules/kinesis"

  coralogix_region    = "Europe"
  private_key         = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
  application_name    = "kinesis"
  subsystem_name      = "logs"
  kinesis_stream_name = "<your kinesis stream name>"
}

now execute:

$ terraform init
$ terraform plan
$ terraform apply

Run terraform destroy when you don't need these resources.

firehose:

provider "aws" {
}

module "cloudwatch_firehose_coralogix" {
  source = "coralogix/aws/coralogix//modules/firehose"

  coralogix_region      = "ireland"
  private_key           = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
  application_name      = "firehose"
  subsystem_name        = "logs-and-metrics"
  firehose_stream       = "<your kinesis stream name>"

  #logs:
  logs_enable           = true
  integration_type_logs = "CloudWatch_JSON"

  #metric:
  metric_enable                  = true
  enable_cloudwatch_metricstream = true
}

now execute:

$ terraform init
$ terraform plan
$ terraform apply

resource-metadata:

provider "aws" {
}

module "coralogix-resource-metadata" {
  source = "coralogix/aws/coralogix//modules/resource-metadata"

  coralogix_region   = "Europe"
  private_key        = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXX"
}

now execute:

$ terraform init
$ terraform plan
$ terraform apply

Modules

Integrations

Provisioning

  • s3-archive - Create s3 archives for coralogix logs and metrics.

Authors

Module is maintained by Coralogix.

License

Apache 2 Licensed. See LICENSE for full details.

About

Coralogix AWS Integrations modules for Terraform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 96.3%
  • Shell 3.7%