{"id":22663719,"url":"https://github.com/yuuki/grabeni","last_synced_at":"2026-01-11T22:02:19.187Z","repository":{"id":30265243,"uuid":"33816668","full_name":"yuuki/grabeni","owner":"yuuki","description":"Grabeni - An ops-friendly AWS Elastic Network Interface (ENI) attachment grabbing tool.","archived":false,"fork":false,"pushed_at":"2022-09-15T00:07:51.000Z","size":10486,"stargazers_count":21,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T04:28:06.648Z","etag":null,"topics":["aws","cli","ec2","go"],"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/yuuki.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}},"created_at":"2015-04-12T12:51:25.000Z","updated_at":"2022-09-14T12:30:49.000Z","dependencies_parsed_at":"2023-01-14T16:38:57.685Z","dependency_job_id":null,"html_url":"https://github.com/yuuki/grabeni","commit_stats":null,"previous_names":["y-uuki/grabeni"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/yuuki/grabeni","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuuki%2Fgrabeni","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuuki%2Fgrabeni/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuuki%2Fgrabeni/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuuki%2Fgrabeni/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuuki","download_url":"https://codeload.github.com/yuuki/grabeni/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuuki%2Fgrabeni/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28324838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T18:42:50.174Z","status":"ssl_error","status_checked_at":"2026-01-11T18:39:13.842Z","response_time":60,"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","cli","ec2","go"],"created_at":"2024-12-09T12:32:50.226Z","updated_at":"2026-01-11T22:02:19.170Z","avatar_url":"https://github.com/yuuki.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"grabeni\n=======\n[![Latest Version](http://img.shields.io/github/release/yuuki/grabeni.svg?style=flat-square)][release]\n[![Build Status](http://img.shields.io/travis/yuuki/grabeni.svg?style=flat-square)][travis]\n[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)][godocs]\n[![Go Report Card](https://goreportcard.com/badge/github.com/yuuki/grabeni)][goreport]\n[![License](http://img.shields.io/:license-mit-blue.svg)][license]\n\n[release]: https://github.com/yuuki/grabeni/releases\n[travis]: http://travis-ci.org/yuuki/grabeni\n[godocs]: http://godoc.org/github.com/yuuki/grabeni\n[goreport]: https://goreportcard.com/report/github.com/yuuki/grabeni\n[license]: http://doge.mit-license.org\n\n`grabeni` is an operation-friendly tool to grab an EC2 Network Interface (ENI) from an other EC2 instance.\n\nDetaching and attaching (grabbing) ENI is a common way to realize VIP (Virtual IP address) in EC2 with Heartbeat, Keepalived, MHA, etc.\n`grabeni` provides command line interface for handling ENI.\n\nThe list of `grabeni`'s features below.\n\n- Listing ENI information.\n- Attacing the specified ENI to the specified instance.\n- Detaching the specified ENI.\n- Grabbing (Attaching and Detaching) the specified ENI to the specified instance.\n- timeout/retry for requesting AWS API.\n\n## Requirements\n```\nec2:DescribeInstances\nec2:DescribeNetworkInterfaces\nec2:AttachNetworkInterface\nec2:DetachNetworkInterface\n```\n\n## Usage\n\n```bash\n$ export AWS_ACCESS_KEY_ID='...'\n$ export AWS_SECRET_ACCESS_KEY='...'\n$ export AWS_REGION='us-east-1'\n$ grabeni grab eni-xxxxxx --instanceid i-xxxxxxd # attach eni-xxxxxx to EC2 instance where grabeni runs if instanceid option is skipped\n```\n\nSee also `grabeni --help`.\n\n## Example\n\n```bash\n$ grabeni ls\nID            NAME    STATUS      PRIVATE DNS NAME                              PRIVATE IP  AZ              DEVICE INDEX    INSTANCE ID INSTANCE NAME\neni-00000000  eni01   in-use      ip-10-0-0-100.ap-northeast-1.compute.internal 10.0.0.100  ap-northeast-1b 0   i-00000000  instance01\neni-11111111  eni02   available   ip-10-0-0-10.ap-northeast-1.compute.internal\t10.0.0.10   ap-northeast-1c -1\neni-22222222  eni03   avaolable   ip-10-0-0-11.ap-northeast-1.compute.internal\t10.0.0.11   ap-northeast-1c 1\n\n$ grabeni status eni-2222222\nID            NAME    STATUS      PRIVATE DNS NAME                              PRIVATE IP  AZ              DEVICE INDEX    INSTANCE ID INSTANCE NAME\neni-22222222  eni03   avaolable   ip-10-0-0-11.ap-northeast-1.compute.internal\t10.0.0.11   ap-northeast-1c 1\n\n$ grabeni grab eni-2222222\n--\u003e Detaching:    eni-2222222\n--\u003e Attaching:    eni-2222222\neni eni-2222222 attached to instance i-xxxxxx\n```\n\n## Installation\n\n### Homebrew\n```bash\n$ brew tap yuuki/grabeni\n$ brew install grabeni\n```\n\n### Download binary from GitHub Releases\n[Releases・yuuki/grabeni - GitHub](https://github.com/yuuki/grabeni/releases)\n\n### Build from source\n```bash\n $ go get github.com/yuuki/grabeni\n $ go install github.com/yuuki/grabeni/...\n```\n\n## Roadmap\n\n- `attach`, `detach`, `grab`: Show ENI information before execution\n- `list`: Filter option\n- Add `check` command to check an availability zone\n- `attach`, `detach`, `grab`: dryrun option\n\n## Contribution\n\n1. Fork ([https://github.com/y_uuki/grabeni/fork](https://github.com/y_uuki/grabeni/fork))\n1. Create a feature branch\n1. Commit your changes\n1. Rebase your local changes against the master branch\n1. Run test suite with the `go test ./...` command and confirm that it passes\n1. Run `gofmt -s`\n1. Create new Pull Request\n\n## License\n\n[The MIT License](./LICENSE).\n\n## Author\n\n[y_uuki](https://github.com/yuuki)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuuki%2Fgrabeni","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuuki%2Fgrabeni","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuuki%2Fgrabeni/lists"}