{"id":51410839,"url":"https://github.com/launchbynttdata/tf-aws-module_primitive-cloudwatch_event_endpoint","last_synced_at":"2026-07-04T14:32:32.399Z","repository":{"id":358948282,"uuid":"1183338830","full_name":"launchbynttdata/tf-aws-module_primitive-cloudwatch_event_endpoint","owner":"launchbynttdata","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-19T18:13:04.000Z","size":109,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-19T21:47:31.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://launch.nttdata.com","language":"Makefile","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/launchbynttdata.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-16T14:06:25.000Z","updated_at":"2026-05-19T18:12:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/launchbynttdata/tf-aws-module_primitive-cloudwatch_event_endpoint","commit_stats":null,"previous_names":["launchbynttdata/tf-aws-module_primitive-cloudwatch_event_endpoint"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/launchbynttdata/tf-aws-module_primitive-cloudwatch_event_endpoint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_endpoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_endpoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_endpoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_endpoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchbynttdata","download_url":"https://codeload.github.com/launchbynttdata/tf-aws-module_primitive-cloudwatch_event_endpoint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_endpoint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35125718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-07-04T14:32:30.312Z","updated_at":"2026-07-04T14:32:32.393Z","avatar_url":"https://github.com/launchbynttdata.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tf-aws-module_primitive-cloudwatch_event_endpoint\n\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![License: CC BY-NC-ND 4.0](https://img.shields.io/badge/License-CC_BY--NC--ND_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-nd/4.0/)\n\n## Overview\n\nThis Terraform module creates an [AWS EventBridge Global Endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_endpoint) for regional fault tolerance. Global endpoints enable automatic failover between primary and secondary regions when the Route 53 health check reports the primary region as unhealthy.\n\n## Features\n\n- Creates an EventBridge global endpoint with configurable routing\n- Supports event replication between primary and secondary regions\n- Configurable Route 53 health check for failover triggering\n- IAM role for event replication (when replication is enabled)\n- Full support for all documented resource attributes\n\n## Usage\n\n```hcl\nmodule \"event_endpoint\" {\n  source = \"terraform.registry.launch.nttdata.com/module_primitive/cloudwatch_event_endpoint/aws\"\n  version = \"~\u003e 1.0\"\n\n  name        = \"my-global-endpoint\"\n  description = \"EventBridge global endpoint for regional fault tolerance\"\n\n  event_bus = [\n    { event_bus_arn = aws_cloudwatch_event_bus.primary.arn },\n    { event_bus_arn = aws_cloudwatch_event_bus.secondary.arn }\n  ]\n\n  routing_config = {\n    primary_health_check_arn = aws_route53_health_check.endpoint.arn\n    secondary_route          = \"us-west-2\"\n  }\n\n  role_arn = aws_iam_role.replication.arn\n\n  replication_config = {\n    state = \"ENABLED\"\n  }\n}\n```\n\n## Pre-Commit Hooks\n\nThe [.pre-commit-config.yaml](.pre-commit-config.yaml) file defines hooks for Terraform, Go, and common linting. The `commitlint` hook enforces conventional commit messages.\n\nThe `detect-secrets-hook` prevents new secrets from being introduced. See [detect-secrets documentation](https://github.com/Yelp/detect-secrets) for details.\n\nTo install the commit-msg hook:\n\n```shell\npre-commit install --hook-type commit-msg\n```\n\n## Local Testing\n\n1. Install components: `make configure`\n2. Set up AWS credentials (e.g., `AWS_PROFILE` or `AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY`)\n3. Create `examples/complete/provider.tf` with AWS provider configuration (or rely on Makefile-generated file)\n4. Create `examples/complete/terraform.tfvars` with variable values\n5. Run validation: `make check`\n\n\u003c!-- BEGIN_TF_DOCS --\u003e\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | ~\u003e 1.5 |\n| \u003ca name=\"requirement_aws\"\u003e\u003c/a\u003e [aws](#requirement\\_aws) | ~\u003e 5.14 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [aws_cloudwatch_event_endpoint.endpoint](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_endpoint) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_description\"\u003e\u003c/a\u003e [description](#input\\_description) | A description of the global endpoint. | `string` | `null` | no |\n| \u003ca name=\"input_event_bus\"\u003e\u003c/a\u003e [event\\_bus](#input\\_event\\_bus) | List of exactly two event bus configurations. Each must have event\\_bus\\_arn.\u003cbr/\u003eEvent bus names must be identical across regions for custom buses. | \u003cpre\u003elist(object({\u003cbr/\u003e    event_bus_arn = string\u003cbr/\u003e  }))\u003c/pre\u003e | n/a | yes |\n| \u003ca name=\"input_name\"\u003e\u003c/a\u003e [name](#input\\_name) | The name of the global endpoint. Maximum of 64 characters consisting of numbers, lower/upper case letters, ., -, \\_. | `string` | n/a | yes |\n| \u003ca name=\"input_replication_config\"\u003e\u003c/a\u003e [replication\\_config](#input\\_replication\\_config) | Replication configuration. When null, replication is not explicitly set (provider default: ENABLED).\u003cbr/\u003e- state: ENABLED or DISABLED. ENABLED replicates events to both regions. | \u003cpre\u003eobject({\u003cbr/\u003e    state = string\u003cbr/\u003e  })\u003c/pre\u003e | `null` | no |\n| \u003ca name=\"input_role_arn\"\u003e\u003c/a\u003e [role\\_arn](#input\\_role\\_arn) | The ARN of the IAM role used for replication between event buses. | `string` | `null` | no |\n| \u003ca name=\"input_routing_config\"\u003e\u003c/a\u003e [routing\\_config](#input\\_routing\\_config) | Routing configuration for failover.\u003cbr/\u003e- primary\\_health\\_check\\_arn: ARN of the Route 53 health check that triggers failover when unhealthy.\u003cbr/\u003e- secondary\\_route: The secondary region name (e.g., us-west-2) for failover routing. | \u003cpre\u003eobject({\u003cbr/\u003e    primary_health_check_arn = string\u003cbr/\u003e    secondary_route          = string\u003cbr/\u003e  })\u003c/pre\u003e | n/a | yes |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_arn\"\u003e\u003c/a\u003e [arn](#output\\_arn) | The ARN of the global endpoint. |\n| \u003ca name=\"output_description\"\u003e\u003c/a\u003e [description](#output\\_description) | The description of the global endpoint. |\n| \u003ca name=\"output_endpoint_url\"\u003e\u003c/a\u003e [endpoint\\_url](#output\\_endpoint\\_url) | The URL of the endpoint used for publishing events. |\n| \u003ca name=\"output_event_bus\"\u003e\u003c/a\u003e [event\\_bus](#output\\_event\\_bus) | The event buses associated with the endpoint. |\n| \u003ca name=\"output_id\"\u003e\u003c/a\u003e [id](#output\\_id) | The ID of the resource (same as the name). |\n| \u003ca name=\"output_name\"\u003e\u003c/a\u003e [name](#output\\_name) | The name of the global endpoint. |\n| \u003ca name=\"output_replication_config\"\u003e\u003c/a\u003e [replication\\_config](#output\\_replication\\_config) | The replication configuration of the endpoint. |\n| \u003ca name=\"output_role_arn\"\u003e\u003c/a\u003e [role\\_arn](#output\\_role\\_arn) | The ARN of the IAM role used for replication. |\n| \u003ca name=\"output_routing_config\"\u003e\u003c/a\u003e [routing\\_config](#output\\_routing\\_config) | The routing configuration including failover settings. |\n\u003c!-- END_TF_DOCS --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_endpoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_endpoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_endpoint/lists"}