{"id":19978371,"url":"https://github.com/geekcell/terraform-aws-datadog-integration","last_synced_at":"2026-04-11T21:02:51.232Z","repository":{"id":74401508,"uuid":"605057729","full_name":"geekcell/terraform-aws-datadog-integration","owner":"geekcell","description":"Terraform AWS Module for provisioning various Datadog integrations.","archived":false,"fork":false,"pushed_at":"2024-03-27T09:30:19.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-01T18:48:52.129Z","etag":null,"topics":["aws","datadog","logging","monitoring","terraform","terraform-module"],"latest_commit_sha":null,"homepage":"https://www.geekcell.io","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geekcell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-22T10:59:21.000Z","updated_at":"2023-05-11T13:00:39.000Z","dependencies_parsed_at":"2024-11-13T03:33:15.836Z","dependency_job_id":"a4a807a6-dfcf-44a6-bb3f-686ff67eec09","html_url":"https://github.com/geekcell/terraform-aws-datadog-integration","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"geekcell/terraform-aws-module-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcell%2Fterraform-aws-datadog-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcell%2Fterraform-aws-datadog-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcell%2Fterraform-aws-datadog-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcell%2Fterraform-aws-datadog-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geekcell","download_url":"https://codeload.github.com/geekcell/terraform-aws-datadog-integration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241411543,"owners_count":19958753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","datadog","logging","monitoring","terraform","terraform-module"],"created_at":"2024-11-13T03:33:12.544Z","updated_at":"2026-04-11T21:02:46.190Z","avatar_url":"https://github.com/geekcell.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- BEGIN_TF_DOCS --\u003e\n[![Geek Cell GmbH](https://raw.githubusercontent.com/geekcell/.github/main/geekcell-github-banner.png)](https://www.geekcell.io/)\n\n### Code Quality\n[![License](https://img.shields.io/github/license/geekcell/terraform-aws-datadog-integration)](https://github.com/geekcell/terraform-aws-datadog-integration/blob/master/LICENSE)\n[![GitHub release (latest tag)](https://img.shields.io/github/v/release/geekcell/terraform-aws-datadog-integration?logo=github\u0026sort=semver)](https://github.com/geekcell/terraform-aws-datadog-integration/releases)\n[![Release](https://github.com/geekcell/terraform-aws-datadog-integration/actions/workflows/release.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-datadog-integration/actions/workflows/release.yaml)\n[![Validate](https://github.com/geekcell/terraform-aws-datadog-integration/actions/workflows/validate.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-datadog-integration/actions/workflows/validate.yaml)\n[![Lint](https://github.com/geekcell/terraform-aws-datadog-integration/actions/workflows/linter.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-datadog-integration/actions/workflows/linter.yaml)\n\n\u003c!--\nComment in these badges if they apply to the repository.\n\n### Security\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/general)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=INFRASTRUCTURE+SECURITY)\n\n#### Cloud\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/cis_aws)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=CIS+AWS+V1.2)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/cis_aws_13)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=CIS+AWS+V1.3)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/cis_azure)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=CIS+AZURE+V1.1)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/cis_azure_13)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=CIS+AZURE+V1.3)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/cis_gcp)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=CIS+GCP+V1.1)\n\n##### Container\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/cis_kubernetes_16)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=CIS+KUBERNETES+V1.6)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/cis_eks_11)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=CIS+EKS+V1.1)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/cis_gke_11)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=CIS+GKE+V1.1)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/cis_kubernetes)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=CIS+KUBERNETES+V1.5)\n\n#### Data protection\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/soc2)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=SOC2)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/pci)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=PCI-DSS+V3.2)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/pci_dss_v321)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=PCI-DSS+V3.2.1)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/iso)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=ISO27001)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/nist)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=NIST-800-53)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/hipaa)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=HIPAA)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-datadog-integration/fedramp_moderate)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-datadog-integration\u0026benchmark=FEDRAMP+%28MODERATE%29)\n\n--\u003e\n\n# Terraform AWS DataDog Module\n\nTerraform module that helps with various Datadog AWS integrations. This module consists of the Main module\nfor creating the AWS Integration role and the following submodules:\n\n### Metric collection\n* Metric polling (out of the box with integration role)\n* [Metric streams with Kinesis Firehose](./modules/metric\\_streams/README.md)\n\n### Resource collection\n* Cloud Security Posture Management (can be enabled via the integration role)\n\n### [ECS Fargate Agent:](./modules/fargate\\_agent/README.md)\n* Scrape DB metrics for DBM\n\n### [Log Forwarder Lambda:](./modules/log\\_forwarder/README.md)\n* Forward any S3 or CloudWatch logs to Datadog\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_account_specific_namespace_rules\"\u003e\u003c/a\u003e [account\\_specific\\_namespace\\_rules](#input\\_account\\_specific\\_namespace\\_rules) | Enables or disables metric collection for specific AWS namespaces for this AWS account only. | `map(bool)` | `null` | no |\n| \u003ca name=\"input_aws_account_id\"\u003e\u003c/a\u003e [aws\\_account\\_id](#input\\_aws\\_account\\_id) | AWS Account ID to integrate with DataDog. If left empty, the current account will be used. | `string` | `null` | no |\n| \u003ca name=\"input_cspm_resource_collection_enabled\"\u003e\u003c/a\u003e [cspm\\_resource\\_collection\\_enabled](#input\\_cspm\\_resource\\_collection\\_enabled) | If enabled, will add the Cloud Security Posture Management policy to the integration role and enable Datadog to collect the information. | `bool` | `false` | no |\n| \u003ca name=\"input_datadog_aws_account_id\"\u003e\u003c/a\u003e [datadog\\_aws\\_account\\_id](#input\\_datadog\\_aws\\_account\\_id) | AWS Account ID of DataDog. | `string` | `\"464622532012\"` | no |\n| \u003ca name=\"input_excluded_regions\"\u003e\u003c/a\u003e [excluded\\_regions](#input\\_excluded\\_regions) | An array of AWS regions to exclude from metrics collection. | `list(string)` | `null` | no |\n| \u003ca name=\"input_filter_tags\"\u003e\u003c/a\u003e [filter\\_tags](#input\\_filter\\_tags) | Array of EC2 tags (in the form key:value) defines a filter that Datadog uses when collecting metrics from EC2. Wildcards, such as ? (for single characters) and * (for multiple characters) can also be used. Only hosts that match one of the defined tags will be imported into Datadog. | `list(string)` | `null` | no |\n| \u003ca name=\"input_host_tags\"\u003e\u003c/a\u003e [host\\_tags](#input\\_host\\_tags) | Array of tags (in the form key:value) to add to all hosts and metrics reporting through this integration. | `list(string)` | `null` | no |\n| \u003ca name=\"input_metrics_collection_enabled\"\u003e\u003c/a\u003e [metrics\\_collection\\_enabled](#input\\_metrics\\_collection\\_enabled) | Whether Datadog collects metrics for this AWS account. | `bool` | `null` | no |\n| \u003ca name=\"input_prefix\"\u003e\u003c/a\u003e [prefix](#input\\_prefix) | Prefix that will added to created resources. | `string` | n/a | yes |\n| \u003ca name=\"input_resource_collection_enabled\"\u003e\u003c/a\u003e [resource\\_collection\\_enabled](#input\\_resource\\_collection\\_enabled) | Whether Datadog collects a standard set of resources from your AWS account. | `bool` | `null` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | Tags to add to the created resources. | `map(any)` | `{}` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_datadog_integration_role_arn\"\u003e\u003c/a\u003e [datadog\\_integration\\_role\\_arn](#output\\_datadog\\_integration\\_role\\_arn) | The ARN of the IAM role created for Datadog to integrate with AWS. |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | \u003e= 4.36 |\n| \u003ca name=\"provider_datadog\"\u003e\u003c/a\u003e [datadog](#provider\\_datadog) | \u003e= 3.21 |\n\n## Resources\n\n- resource.aws_iam_role_policy_attachment.csp (main.tf#161)\n- resource.datadog_integration_aws.main (main.tf#28)\n- data source.aws_caller_identity.current (main.tf#20)\n\n# Examples\n### Full\n```hcl\n# Can be configured via ENV vars. See: https://registry.terraform.io/providers/DataDog/datadog/latest/docs#optional\nprovider \"datadog\" {}\nprovider \"aws\" {}\n\n# Enable the basic AWS integration:\n# https://docs.datadoghq.com/integrations/amazon_web_services/#aws-iam-permissions\nmodule \"integration\" {\n  source = \"../../\"\n\n  prefix = \"datadog-pro\"\n}\n\n# Enable metric stream integration for faster metric ingestion:\n# https://docs.datadoghq.com/integrations/guide/aws-cloudwatch-metric-streams-with-kinesis-data-firehose\nmodule \"metric_stream\" {\n  source = \"../../modules/metrics_firehose\"\n\n  prefix          = \"datadog-pro\"\n  datadog_api_key = var.datadog_api_key\n}\n\n# Deploy the log forwarder Lambda via CloudFormation:\n# https://docs.datadoghq.com/logs/guide/forwarder/?tab=terraform\nmodule \"log_forwarder\" {\n  source = \"../../modules/log_forwarder\"\n\n  prefix          = \"datadog-pro\"\n  datadog_api_key = var.datadog_api_key\n}\n```\n\u003c!-- END_TF_DOCS --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekcell%2Fterraform-aws-datadog-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeekcell%2Fterraform-aws-datadog-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekcell%2Fterraform-aws-datadog-integration/lists"}