{"id":51410829,"url":"https://github.com/launchbynttdata/tf-aws-module_primitive-cloudwatch_event_api_destination","last_synced_at":"2026-07-04T14:32:31.405Z","repository":{"id":348771681,"uuid":"1184324225","full_name":"launchbynttdata/tf-aws-module_primitive-cloudwatch_event_api_destination","owner":"launchbynttdata","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-14T00:50:30.000Z","size":133,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-14T02:23:05.395Z","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-17T13:31:33.000Z","updated_at":"2026-06-14T00:50:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/launchbynttdata/tf-aws-module_primitive-cloudwatch_event_api_destination","commit_stats":null,"previous_names":["launchbynttdata/tf-aws-module_primitive-cloudwatch_event_api_destination"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/launchbynttdata/tf-aws-module_primitive-cloudwatch_event_api_destination","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_api_destination","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_api_destination/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_api_destination/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_api_destination/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_api_destination/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_api_destination/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:29.973Z","updated_at":"2026-07-04T14:32:31.398Z","avatar_url":"https://github.com/launchbynttdata.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform AWS Module: EventBridge API Destination\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 API Destination](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destination.html). API Destinations allow you to send events to HTTP API endpoints as EventBridge targets, with configurable rate limiting and connection-based authorization.\n\n## Documentation\n\n- [Terraform AWS Provider: aws_cloudwatch_event_api_destination](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_api_destination)\n- [Amazon EventBridge API Destinations](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-api-destination.html)\n\n## Pre-Commit Hooks\n\nThe [.pre-commit-config.yaml](.pre-commit-config.yaml) file defines pre-commit hooks for Terraform, Go, and common linting. The `detect-secrets-hook` prevents new secrets from being introduced into the baseline. See [pre-commit](https://pre-commit.com/) for installation.\n\nInstall the commit-msg hook for commitlint:\n\n```\npre-commit install --hook-type commit-msg\n```\n\n## Usage\n\n```hcl\nmodule \"api_destination\" {\n  source = \"terraform.registry.launch.nttdata.com/module_primitive/cloudwatch_event_api_destination/aws\"\n\n  name                   = \"my-api-destination\"\n  connection_arn         = aws_cloudwatch_event_connection.connection.arn\n  invocation_endpoint    = \"https://api.example.com/webhook\"\n  http_method            = \"POST\"\n  description            = \"API destination for webhook\"\n  invocation_rate_limit_per_second = 20\n}\n```\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.9 |\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_api_destination.api_destination](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_api_destination) | resource |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_connection_arn\"\u003e\u003c/a\u003e [connection\\_arn](#input\\_connection\\_arn) | ARN of the EventBridge Connection to use for authorization with the API Destination. | `string` | n/a | yes |\n| \u003ca name=\"input_description\"\u003e\u003c/a\u003e [description](#input\\_description) | Description of the API Destination. Maximum 512 characters. | `string` | `null` | no |\n| \u003ca name=\"input_http_method\"\u003e\u003c/a\u003e [http\\_method](#input\\_http\\_method) | HTTP method used for the invocation endpoint (e.g., GET, POST, PUT). | `string` | n/a | yes |\n| \u003ca name=\"input_invocation_endpoint\"\u003e\u003c/a\u003e [invocation\\_endpoint](#input\\_invocation\\_endpoint) | URL endpoint to invoke as a target. Must use HTTPS and can include '*' as path parameter wildcards. | `string` | n/a | yes |\n| \u003ca name=\"input_invocation_rate_limit_per_second\"\u003e\u003c/a\u003e [invocation\\_rate\\_limit\\_per\\_second](#input\\_invocation\\_rate\\_limit\\_per\\_second) | Maximum number of invocations per second allowed for this destination. Must be greater than 0. Defaults to 300. | `number` | `300` | no |\n| \u003ca name=\"input_name\"\u003e\u003c/a\u003e [name](#input\\_name) | The name of the API Destination. Must be unique within your account. Maximum 64 characters consisting of numbers, letters, dots, dashes, and underscores. | `string` | 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 event API Destination. |\n| \u003ca name=\"output_http_method\"\u003e\u003c/a\u003e [http\\_method](#output\\_http\\_method) | The HTTP method used for the invocation endpoint. |\n| \u003ca name=\"output_id\"\u003e\u003c/a\u003e [id](#output\\_id) | The ID of the resource (same as the ARN). |\n| \u003ca name=\"output_invocation_endpoint\"\u003e\u003c/a\u003e [invocation\\_endpoint](#output\\_invocation\\_endpoint) | The URL endpoint invoked as a target. |\n| \u003ca name=\"output_invocation_rate_limit_per_second\"\u003e\u003c/a\u003e [invocation\\_rate\\_limit\\_per\\_second](#output\\_invocation\\_rate\\_limit\\_per\\_second) | The maximum number of invocations per second for this destination. |\n| \u003ca name=\"output_name\"\u003e\u003c/a\u003e [name](#output\\_name) | The name of the API Destination. |\n\u003c!-- END_TF_DOCS --\u003e\n\n## Testing\n\n1. Run `make configure` to set up the repository.\n2. Configure AWS credentials (e.g., via `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_DEFAULT_REGION`).\n3. Create `examples/complete/provider.tf` with your AWS provider configuration (delivered by Makefile when using repo sync).\n4. Run `make check` to execute lint, validate, plan, and Terratest.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_api_destination","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_api_destination","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchbynttdata%2Ftf-aws-module_primitive-cloudwatch_event_api_destination/lists"}