{"id":25609549,"url":"https://github.com/udhos/ecs-task-discovery","last_synced_at":"2026-04-14T23:33:50.754Z","repository":{"id":275878288,"uuid":"927437110","full_name":"udhos/ecs-task-discovery","owner":"udhos","description":"ecs-task-discovery is a Go module that performs service discovery for ECS tasks.","archived":false,"fork":false,"pushed_at":"2025-12-11T13:46:13.000Z","size":150,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-12T16:45:47.456Z","etag":null,"topics":["aws","discovery","ecs","go","go-module","golang","module"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/udhos.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-05T00:26:51.000Z","updated_at":"2025-12-11T13:46:13.000Z","dependencies_parsed_at":"2025-02-20T02:25:43.257Z","dependency_job_id":"77332a28-770b-4308-8af1-98e8b420f0c8","html_url":"https://github.com/udhos/ecs-task-discovery","commit_stats":null,"previous_names":["udhos/ecs-task-discovery"],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/udhos/ecs-task-discovery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fecs-task-discovery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fecs-task-discovery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fecs-task-discovery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fecs-task-discovery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/udhos","download_url":"https://codeload.github.com/udhos/ecs-task-discovery/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/udhos%2Fecs-task-discovery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31819856,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: 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":["aws","discovery","ecs","go","go-module","golang","module"],"created_at":"2025-02-21T21:40:29.145Z","updated_at":"2026-04-14T23:33:50.744Z","avatar_url":"https://github.com/udhos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/udhos/ecs-task-discovery/blob/main/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/udhos/ecs-task-discovery)](https://goreportcard.com/report/github.com/udhos/ecs-task-discovery)\n[![Go Reference](https://pkg.go.dev/badge/github.com/udhos/ecs-task-discovery.svg)](https://pkg.go.dev/github.com/udhos/ecs-task-discovery)\n[![Docker Pulls Agent](https://img.shields.io/docker/pulls/udhos/ecs-task-discovery-agent)](https://hub.docker.com/r/udhos/ecs-task-discovery-agent)\n[![Docker Pulls Example](https://img.shields.io/docker/pulls/udhos/ecs-task-discovery-example)](https://hub.docker.com/r/udhos/ecs-task-discovery-example)\n\n# ecs-task-discovery\n\n[ecs-task-discovery](https://github.com/udhos/ecs-task-discovery?tab=readme-ov-file) is a Go module that performs service discovery for ECS tasks.\n\n# Groupcache Task Discovery\n\nThe package [groupcachediscovery](https://pkg.go.dev/github.com/udhos/ecs-task-discovery/groupcachediscovery) implements task discovery for groupcache-enabled applications running on AWS ECS.\n\nSee package documentation here: [groupcachediscovery](https://pkg.go.dev/github.com/udhos/ecs-task-discovery/groupcachediscovery)\n\nFind an example toy application using [groupcache](https://github.com/modernprogram/groupcache) with [groupcachediscovery](https://pkg.go.dev/github.com/udhos/ecs-task-discovery/groupcachediscovery) here: https://github.com/udhos/kubecache/blob/main/cmd/kubecache/groupcache.go\n\n# Usage\n\nSee example: [./cmd/ecs-task-discovery-example/main.go](./cmd/ecs-task-discovery-example/main.go)\n\n# Build Example\n\n```bash\n./build.sh\n```\n\n# Run example\n\n```bash\nexport SERVICE=ecs-task-discovery-example\n\necs-task-discovery-example\n```\n\n# Testing agent\n\n```bash\n# mock metadata server\ncd samples\npython3 -m http.server 8000\n\n# run agent pointing to mocked metadata\nexport FORCE_SINGLE_TASK=true\nexport ECS_CONTAINER_METADATA_URI_V4=http://localhost:8000\necs-task-discovery-agent\n\ncurl localhost:8080/tasks/ecs-task-discovery-example\n\nexport ECS_TASK_DISCOVERY_AGENT_URL=http://localhost:8080/tasks\nexport ECS_CONTAINER_METADATA_URI_V4=http://localhost:8000\necs-task-discovery-example\n```\n\n# References\n\n## ECS Exec Checker\n\nECS Exec Checker: https://github.com/aws-containers/amazon-ecs-exec-checker\n\n```bash\ngit clone https://github.com/aws-containers/amazon-ecs-exec-checker\n\ncd amazon-ecs-exec-checker\n\n./check-ecs-exec.sh demo 1641160e91d34bbf880549bde1981fb3\n```\n\n## Execute command\n\n```bash\naws ecs update-service \\\n    --task-definition miniapi \\\n    --cluster demo \\\n    --service demo \\\n    --enable-execute-command \\\n    --force-new-deployment\n\naws ecs execute-command --cluster demo \\\n    --task 1641160e91d34bbf880549bde1981fb3 \\\n    --container miniapi \\\n    --interactive \\\n    --command \"/bin/sh\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fecs-task-discovery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fudhos%2Fecs-task-discovery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fudhos%2Fecs-task-discovery/lists"}