Terraform module for creating required AWS resources to support Datadog AWS CloudWatch Metric Streams with Kinesis Data Firehose
https://registry.terraform.io/modules/topotal/datadog-metric-stream/aws/latest
Copy and paste into your Terraform configuration, insert the variables, and run terraform init:
module "datadog-metric-stream" {
source = "topotal/datadog-metric-stream/aws"
version = "0.2.1"
datadog_api_key = "YOUR_DATADOG_API_KEY"
s3_bucket_firehose_backup = "EXAMPLE_S3_BUCKET_NAME_FOR_FIREHOSE_BACKUP"
}
Name | Version |
---|---|
terraform | >= 1.0.0 |
aws | >= 3.74.0 |
Name | Version |
---|---|
aws | >= 3.74.0 |
No modules.
Name | Type |
---|---|
aws_cloudwatch_log_group.datadog-metric-stream | resource |
aws_cloudwatch_log_stream.datadog-metric-stream-http_endpoint_delivery | resource |
aws_cloudwatch_log_stream.datadog-metric-stream-s3_backup | resource |
aws_cloudwatch_metric_stream.datadog | resource |
aws_iam_role.datadog-firehose | resource |
aws_iam_role.datadog-metric-stream | resource |
aws_iam_role_policy.datadog-firehose-s3-backup | resource |
aws_iam_role_policy.datadog-metric-stream-firehose | resource |
aws_kinesis_firehose_delivery_stream.datadog | resource |
aws_s3_bucket.datadog-firehose-backup | resource |
aws_caller_identity.current | data source |
aws_iam_policy_document.datadog-firehose-assume-role | data source |
aws_iam_policy_document.datadog-firehose-s3-backup | data source |
aws_iam_policy_document.datadog-metric-stream-assume-role | data source |
aws_iam_policy_document.datadog-metric-stream-firehose | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
aws_iam_role_datadog_firehose_name | The name of the IAM Role for Kinesis Firehose | string |
"DatadogFirehoseRole" |
no |
aws_iam_role_datadog_metric_stream_name | The name of the IAM Role for Datadog Metric Stream | string |
"DatadogMetricStreamRole" |
no |
aws_iam_role_policy_datadog_firehose_s3_backup_name | The name of the IAM Role Policy for Firehose to allow PutObject to Firehose | string |
"DatadogFirehoseS3BackupPolicy" |
no |
aws_iam_role_policy_datadog_metric_stream_firehose_name | The name of the IAM Role Policy for Metric Stream to allow PutRecords to Firehose | string |
"DatadogMetricStreamFirehosePolicy" |
no |
cloudwatch_log_group_name | The name of the CloudWatch log group | string |
"datadog-metric-stream" |
no |
cloudwatch_metric_stream_name | The name of the CloudWatch Metric Stream | string |
"datadog" |
no |
cloudwatch_metric_stream_output_format | The output fotmat of the CloudWatch Metric Stream | string |
"opentelemetry0.7" |
no |
datadog_api_key | The API Key for Datadog | string |
n/a | yes |
datadog_firehose_endpoint | Datadog Kinesis Firehose Endpoint | string |
"https://awsmetrics-intake.datadoghq.com/v1/input" |
no |
kinesis_firehose_delivery_stream_name | The name of Kinesis Firehose | string |
"datadog" |
no |
metric_stream_namespace_list | The list of the namespaces for CloudWatch Metric Stream | list(string) |
[] |
no |
s3_bucket_backup_prefix | The prefix of the S3 bucket for backup | string |
"metrics/" |
no |
s3_bucket_firehose_backup | The name of the S3 bucket for backup | string |
n/a | yes |
No outputs.