Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

symopsio/terraform-sym-datadog-connector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deprecation Warning

The symopsio/datadog-connector/sym module is deprecated as of September 30, 2022. Please migrate to symopsio/datadog-connector/aws. This can be done in your module declarations by replacing the symopsio/datadog-connector/sym source argument with symopsio/datadog-connector/aws.

module "datadog_connector" {
  source  = "symopsio/datadog-connector/aws"
  version = ">= 2.0.0"
  # insert the 2 required variables here
}

datadog-connector

The datadog-connector module provisions a Kinesis Firehose which is configured to pipe logs to Datadog. It uses the kinesis-firehose-connector to create the Firehose's dependencies.

To provide the Sym Runtime with access to the resources created in this Connector, use the aws/kinesis-firehose addon in the runtime-connector module.

For EU Datadog, make sure to set the datadog_intake_url input to https://aws-kinesis-http-intake.logs.datadoghq.eu/v1/input!

SECURITY NOTE: The datadog_access_key variable is sensitive. Be sure to manage this value in an environment variable or a tfvars file that is excluded from version control. For example, export TF_VAR_datadog_access_key="my-access-key".

module "datadog_connector" {
  source  = "symopsio/datadog-connector/sym"
  version = ">= 2.0.0"

  environment = "sandbox"
  datadog_access_key = var.sensitive_access_key
}

Requirements

Name Version
terraform >= 0.14.0
aws ~> 3.0

Providers

Name Version
aws ~> 3.0

Modules

Name Source Version
kinesis_firehose_connector symopsio/kinesis-firehose-connector/sym >= 3.0.0, < 4.0.0

Resources

Name Type
aws_kinesis_firehose_delivery_stream.this resource
aws_region.current data source

Inputs

Name Description Type Default Required
datadog_access_key Secret used by the Firehose to send logs to Datadog. DO NOT check this into version control. string n/a yes
datadog_intake_url Intake url for Datadog to consume Kinesis Firehose messages. For EU Datadog, set to 'https://aws-kinesis-http-intake.logs.datadoghq.eu/v1/input'. string "https://aws-kinesis-http-intake.logs.datadoghq.com/v1/input" no
environment An environment qualifier for the resources this module creates, to support a Terraform SDLC. string n/a yes
name_prefix A prefix for the Firehose and dependency names string "" no
tags Additional tags to apply to resources. map(string) {} no

Outputs

Name Description
firehose_arn The ARN of the created Firehose
firehose_name The name of the created Firehose