{"id":19978372,"url":"https://github.com/geekcell/terraform-aws-cloudwatch-log-group","last_synced_at":"2026-05-13T17:32:06.372Z","repository":{"id":150853795,"uuid":"585891509","full_name":"geekcell/terraform-aws-cloudwatch-log-group","owner":"geekcell","description":"Terraform module to provision an AWS Cloudwatch Log Group.","archived":false,"fork":false,"pushed_at":"2023-09-22T11:21:28.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-01T18:48:52.032Z","etag":null,"topics":["audit","aws","cloudwatch","logging","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}},"created_at":"2023-01-06T11:12:00.000Z","updated_at":"2023-05-11T12:56:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"f230221c-d8c1-49d5-8563-70e3ba25b9c9","html_url":"https://github.com/geekcell/terraform-aws-cloudwatch-log-group","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":"geekcell/terraform-aws-module-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcell%2Fterraform-aws-cloudwatch-log-group","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcell%2Fterraform-aws-cloudwatch-log-group/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcell%2Fterraform-aws-cloudwatch-log-group/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcell%2Fterraform-aws-cloudwatch-log-group/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geekcell","download_url":"https://codeload.github.com/geekcell/terraform-aws-cloudwatch-log-group/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":["audit","aws","cloudwatch","logging","terraform","terraform-module"],"created_at":"2024-11-13T03:33:12.994Z","updated_at":"2026-05-13T17:32:06.343Z","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-cloudwatch-log-group)](https://github.com/geekcell/terraform-aws-cloudwatch-log-group/blob/master/LICENSE)\n[![GitHub release (latest tag)](https://img.shields.io/github/v/release/geekcell/terraform-aws-cloudwatch-log-group?logo=github\u0026sort=semver)](https://github.com/geekcell/terraform-aws-cloudwatch-log-group/releases)\n[![Release](https://github.com/geekcell/terraform-aws-cloudwatch-log-group/actions/workflows/release.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-cloudwatch-log-group/actions/workflows/release.yaml)\n[![Validate](https://github.com/geekcell/terraform-aws-cloudwatch-log-group/actions/workflows/validate.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-cloudwatch-log-group/actions/workflows/validate.yaml)\n[![Lint](https://github.com/geekcell/terraform-aws-cloudwatch-log-group/actions/workflows/linter.yaml/badge.svg)](https://github.com/geekcell/terraform-aws-cloudwatch-log-group/actions/workflows/linter.yaml)\n\n### Security\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/general)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=INFRASTRUCTURE+SECURITY)\n\n#### Cloud\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/cis_aws)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=CIS+AWS+V1.2)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/cis_aws_13)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=CIS+AWS+V1.3)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/cis_azure)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=CIS+AZURE+V1.1)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/cis_azure_13)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=CIS+AZURE+V1.3)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/cis_gcp)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=CIS+GCP+V1.1)\n\n##### Container\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/cis_kubernetes_16)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=CIS+KUBERNETES+V1.6)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/cis_eks_11)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=CIS+EKS+V1.1)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/cis_gke_11)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=CIS+GKE+V1.1)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/cis_kubernetes)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=CIS+KUBERNETES+V1.5)\n\n#### Data protection\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/soc2)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=SOC2)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/pci)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=PCI-DSS+V3.2)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/pci_dss_v321)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=PCI-DSS+V3.2.1)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/iso)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=ISO27001)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/nist)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=NIST-800-53)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/hipaa)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=HIPAA)\n[![Infrastructure Tests](https://www.bridgecrew.cloud/badges/github/geekcell/terraform-aws-cloudwatch-log-group/fedramp_moderate)](https://www.bridgecrew.cloud/link/badge?vcs=github\u0026fullRepo=geekcell%2Fterraform-aws-cloudwatch-log-group\u0026benchmark=FEDRAMP+%28MODERATE%29)\n\n# Terraform Cloudwatch Log Group\n\nTerraform module which creates an AWS Cloudwatch Log group. The focus on this module lies within it's simplicity by\nproviding default values that should make sense for most use cases.\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_enable_customer_managed_kms\"\u003e\u003c/a\u003e [enable\\_customer\\_managed\\_kms](#input\\_enable\\_customer\\_managed\\_kms) | Whether to enable customer managed KMS encryption for the log group. | `bool` | `false` | no |\n| \u003ca name=\"input_kms_key_id\"\u003e\u003c/a\u003e [kms\\_key\\_id](#input\\_kms\\_key\\_id) | The ARN of the KMS Key to use when encrypting log data. | `string` | `null` | no |\n| \u003ca name=\"input_log_streams\"\u003e\u003c/a\u003e [log\\_streams](#input\\_log\\_streams) | A list of log streams to create within the log group. | `list(string)` | `[]` | no |\n| \u003ca name=\"input_name\"\u003e\u003c/a\u003e [name](#input\\_name) | The name of the log group. | `string` | n/a | yes |\n| \u003ca name=\"input_retention_in_days\"\u003e\u003c/a\u003e [retention\\_in\\_days](#input\\_retention\\_in\\_days) | Specifies the number of days you want to retain log events in the specified log group. | `number` | `30` | no |\n| \u003ca name=\"input_skip_destroy\"\u003e\u003c/a\u003e [skip\\_destroy](#input\\_skip\\_destroy) | Set to true if you do not wish the log group (and any logs it may contain) to be deleted at destroy time, and instead just remove the log group from the Terraform state. | `bool` | `false` | no |\n| \u003ca name=\"input_tags\"\u003e\u003c/a\u003e [tags](#input\\_tags) | Tags to add to the AWS Cloudwatch log group. | `map(any)` | `{}` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_arn\"\u003e\u003c/a\u003e [arn](#output\\_arn) | The cloudwatch log group ARN |\n| \u003ca name=\"output_customer_managed_key_arn\"\u003e\u003c/a\u003e [customer\\_managed\\_key\\_arn](#output\\_customer\\_managed\\_key\\_arn) | The ARN of the customer KMS key used to encrypt log data if enabled. |\n| \u003ca name=\"output_name\"\u003e\u003c/a\u003e [name](#output\\_name) | The cloudwatch log group name |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_aws\"\u003e\u003c/a\u003e [aws](#provider\\_aws) | \u003e= 4.36 |\n\n## Resources\n\n- resource.aws_cloudwatch_log_group.main (main.tf#7)\n- resource.aws_cloudwatch_log_stream.main (main.tf#17)\n- data source.aws_caller_identity.current (data.tf#1)\n- data source.aws_iam_policy_document.main (data.tf#5)\n- data source.aws_region.current (data.tf#3)\n\n# Examples\n### Full\n```hcl\nmodule \"example\" {\n  source = \"../../\"\n\n  name = \"example\"\n}\n```\n\u003c!-- END_TF_DOCS --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekcell%2Fterraform-aws-cloudwatch-log-group","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeekcell%2Fterraform-aws-cloudwatch-log-group","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekcell%2Fterraform-aws-cloudwatch-log-group/lists"}