Code Monkey home page Code Monkey logo

terraform-coralogix-aws's Introduction

AWS Coralogix Terraform modules

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.

ECS-EC2

Provision an ECS Service that run the OTEL Collector Agent as a Daemon container on each EC2 container instance. For parameter details, see ECS-EC2 module README

module "ecs-ec2" {
  source                   = "../../modules/ecs-ec2"
  ecs_cluster_name         = "ecs-cluster-name"
  image_version            = "latest"
  memory                   = numeric MiB
  coralogix_region         = ["Europe"|"Europe2"|"India"|"Singapore"|"US"|"US2"]
  custom_domain            = "[optional] custom Coralogix domain"
  default_application_name = "Coralogix Application Name"
  default_subsystem_name   = "Coralogix Subsystem Name"
  api_key                  = var.api_key
  otel_config_file         = "[optional] file path to custom OTEL collector config file"
  metrics                  = [true|false]
  tags                     = {} # optional
  task_definition_arn      = "[optional] arn"
}

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-logs:

provider "aws" {
}

module "cloudwatch_firehose_logs_coralogix" {
  source = "coralogix/aws/coralogix//modules/firehose-logs"

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

  #logs:
  integration_type_logs = "CloudWatch_JSON"
}

now execute:

$ terraform init
$ terraform plan
$ terraform apply

Then create subscription filters in your CloudWatch log groups to send logs to the firehose logs delivery stream.

firehose-metrics:

provider "aws" {
}

module "cloudwatch_firehose_metrics_coralogix" {
  source = "coralogix/aws/coralogix//modules/firehose-metrics"

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

  #metrics:
  enable_cloudwatch_metricstream = true
}

now execute:

$ terraform init
$ terraform plan
$ terraform apply

Metrics collected by the created CloudWatch Metric Stream will be sent to the firehose metrics delivery stream.

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.

terraform-coralogix-aws's People

Contributors

amit-mazor avatar amit-o avatar anton-yurchenko avatar avivsc-corl avatar chook avatar crustyboot avatar dennischristmann avatar dependabot[bot] avatar dovronk avatar eldaraliiev avatar eskja avatar frank-ang avatar giltk avatar guyrenny avatar juan-coralogix avatar matej-g avatar michaelbriggs-coralogix avatar nicolastakashi avatar povilasv avatar rafalsumislawski avatar razgoldenberg1 avatar ryantanjunming avatar yarden-avr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.