{"id":29019630,"url":"https://github.com/senora-dev/terraform-aws-cloudwatch-alarms","last_synced_at":"2026-02-20T18:31:36.248Z","repository":{"id":301182466,"uuid":"1000654913","full_name":"Senora-dev/terraform-aws-cloudwatch-alarms","owner":"Senora-dev","description":"This Terraform module creates CloudWatch metric alarms with support for both direct configuration and JSON file-based configuration.","archived":false,"fork":false,"pushed_at":"2025-06-25T14:45:59.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-20T11:42:32.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Senora-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-06-12T05:58:07.000Z","updated_at":"2025-06-25T14:40:07.000Z","dependencies_parsed_at":"2025-06-25T15:39:10.451Z","dependency_job_id":"2fe5bf2d-47f0-4b6b-add2-4cdb81e6ef74","html_url":"https://github.com/Senora-dev/terraform-aws-cloudwatch-alarms","commit_stats":null,"previous_names":["senora-dev/terraform-aws-cloudwatch-alarms"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Senora-dev/terraform-aws-cloudwatch-alarms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-cloudwatch-alarms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-cloudwatch-alarms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-cloudwatch-alarms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-cloudwatch-alarms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Senora-dev","download_url":"https://codeload.github.com/Senora-dev/terraform-aws-cloudwatch-alarms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Senora-dev%2Fterraform-aws-cloudwatch-alarms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29660024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T16:33:43.953Z","status":"ssl_error","status_checked_at":"2026-02-20T16:33:43.598Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-06-26T00:31:34.820Z","updated_at":"2026-02-20T18:31:36.231Z","avatar_url":"https://github.com/Senora-dev.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS CloudWatch Alarms Terraform Module\n\nThis Terraform module creates CloudWatch metric alarms with support for both direct configuration and JSON file-based configuration.\n\n## Features\n\n- Create multiple CloudWatch metric alarms\n- Support for JSON file-based configuration\n- Flexible alarm configuration with sensible defaults\n- Support for all CloudWatch metric alarm parameters\n- Tag support\n\n## Usage\n\n### Using JSON Configuration\n\n```hcl\nmodule \"cloudwatch_alarms\" {\n  source = \"Senora-dev/cloudwatch-alarms/aws\"\n\n  alarms_json_path = \"path/to/alarms.json\"\n  \n  tags = {\n    Environment = \"production\"\n    Project     = \"my-project\"\n  }\n}\n```\n\nExample `alarms.json`:\n```json\n{\n  \"high_cpu\": {\n    \"alarm_name\": \"high-cpu-usage\",\n    \"alarm_description\": \"This metric monitors EC2 CPU utilization\",\n    \"comparison_operator\": \"GreaterThanThreshold\",\n    \"evaluation_periods\": 2,\n    \"threshold\": 80,\n    \"period\": 300,\n    \"namespace\": \"AWS/EC2\",\n    \"metric_name\": \"CPUUtilization\",\n    \"statistic\": \"Average\",\n    \"dimensions\": {\n      \"InstanceId\": \"i-1234567890abcdef0\"\n    },\n    \"alarm_actions\": [\"arn:aws:sns:us-west-2:123456789012:alert-topic\"]\n  }\n}\n```\n\n### Using Direct Configuration\n\n```hcl\nmodule \"cloudwatch_alarms\" {\n  source = \"path/to/module\"\n\n  alarms = {\n    high_cpu = {\n      alarm_name          = \"high-cpu-usage\"\n      alarm_description   = \"This metric monitors EC2 CPU utilization\"\n      comparison_operator = \"GreaterThanThreshold\"\n      evaluation_periods  = 2\n      threshold          = 80\n      period            = 300\n      namespace         = \"AWS/EC2\"\n      metric_name       = \"CPUUtilization\"\n      statistic         = \"Average\"\n      dimensions = {\n        InstanceId = \"i-1234567890abcdef0\"\n      }\n      alarm_actions    = [\"arn:aws:sns:us-west-2:123456789012:alert-topic\"]\n    }\n  }\n\n  tags = {\n    Environment = \"production\"\n    Project     = \"my-project\"\n  }\n}\n```\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| terraform | \u003e= 1.0.0 |\n| aws | \u003e= 4.0.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| aws | \u003e= 4.0.0 |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| alarms_json_path | Path to a JSON file containing alarm configurations | `string` | `null` | no |\n| alarms | Map of alarm configurations | `map(object(...))` | `{}` | no |\n| tags | A map of tags to add to all resources | `map(string)` | `{}` | no |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| alarm_arns | Map of alarm names to their ARNs |\n| alarm_ids | Map of alarm names to their IDs |\n\n## Examples\n\n* [Complete Example](examples/complete) - Shows both JSON and direct configuration methods\n\n## Authors\n\nModule is maintained by [Your Name]\n\n## License\n\nApache 2 Licensed. See LICENSE for full details.\n\n## Maintainers\n\nThis module is maintained by [Senora.dev](https://senora.dev). ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenora-dev%2Fterraform-aws-cloudwatch-alarms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsenora-dev%2Fterraform-aws-cloudwatch-alarms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsenora-dev%2Fterraform-aws-cloudwatch-alarms/lists"}