{"id":17664439,"url":"https://github.com/tilfin/homebrew-aws","last_synced_at":"2025-10-26T23:32:07.111Z","repository":{"id":145828495,"uuid":"82269239","full_name":"tilfin/homebrew-aws","owner":"tilfin","description":"AWS commands easy to manipulate on terminal","archived":false,"fork":false,"pushed_at":"2024-06-03T02:13:42.000Z","size":11,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-23T10:53:21.891Z","etag":null,"topics":["assume-role","aws","aws-cli","ec2","shell-script","ssh"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/tilfin.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}},"created_at":"2017-02-17T07:22:59.000Z","updated_at":"2024-12-04T02:53:10.000Z","dependencies_parsed_at":"2024-10-30T22:36:14.031Z","dependency_job_id":null,"html_url":"https://github.com/tilfin/homebrew-aws","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tilfin/homebrew-aws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilfin%2Fhomebrew-aws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilfin%2Fhomebrew-aws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilfin%2Fhomebrew-aws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilfin%2Fhomebrew-aws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tilfin","download_url":"https://codeload.github.com/tilfin/homebrew-aws/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilfin%2Fhomebrew-aws/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267149597,"owners_count":24043444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"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":["assume-role","aws","aws-cli","ec2","shell-script","ssh"],"created_at":"2024-10-23T20:05:26.324Z","updated_at":"2025-10-26T23:32:07.038Z","avatar_url":"https://github.com/tilfin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"AWS commands easy to manipulate on terminal\n===========================================\n\n## Prepare for homebrew\n\n```\n$ brew tap tilfin/aws\n```\n\n## ec2ssh\n\nA script to ssh EC2 instances to be selected from the list shown for specified profile\n\n### Install via homebrew\n\n```\n$ brew install ec2ssh\n```\n\n### How to use\n\n```\n$ ec2ssh \u003caws profile\u003e\n```\n\n* If switching profile needs your MFA token, `Enter MFA code\u003e ` is shown.\n* SSH user is fixed to _ec2-user_.\n\n### Pre and Post hook\n\n* If your need pre hook, put `~/.ec2ssh-pre` file.\n* If your need post hook, put `~/.ec2ssh-post` file.\n\n#### Purposes\n\n* If target EC2 needs the connection via a bastion server, `bastion` in *pre* hook\n* If target EC2 needs the routing (via VPN), add a route in *pre* hook and delete the route in *post* hook.\n\n#### Examples\n\n##### .ec2ssh-pre\n\n```\ncase $profile in\n  brand-x)\n    bastion=brand-x-bastion\n    ;;\n  brand-y)\n    sudo route add 50.200.200.100 192.168.50.1\n    ;;\nesac\n```\n\n##### .ec2ssh-post\n\n```\ncase $profile in\n  brand-y)\n    sudo route del 50.200.200.100\n    ;;\nesac\n```\n\n### Screenshot\n\n![ec2ssh_screenshot](https://cloud.githubusercontent.com/assets/519017/23257373/d62b8df0-fa06-11e6-8832-593b87ee3e46.png)\n\n\n## swrole\n\nA script to switch an assume role for terminal shell\n\n### Install via homebrew\n\n```\n$ brew install swrole\n```\n\n### How to use\n\n```\n$ swrole [-j] [-o] [-t \u003cOTP\u003e] \u003caws_profile\u003e\n```\n\n- `-j`: Output JSON for AWS credential_process.\n- `-o`: Output AWS credentials values as environment variable definitions.\n- `-t \u003conetime_code\u003e`: Specify a onetime code, e.g., `-t 123456`.\n\n* Enter forked bash that exports AWS_XXX environments if neither `-o` nor `-j` option is specified.\n* Be careful that the session will expire in an hour.\n\n### Configuration Fields\n\nAdd the following fields to `~/.aws/config`:\n\n- `color`: Specify a color for the profile name in the forked bash.\n- `generate_token`: Automatically obtain OTP by executing the specified command for profiles with `mfa_serial` defined.\n\n### Screenshot\n\n![swrole_screenshot](https://cloud.githubusercontent.com/assets/519017/23257376/dc26893a-fa06-11e6-86af-6fa88ce49299.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilfin%2Fhomebrew-aws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftilfin%2Fhomebrew-aws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilfin%2Fhomebrew-aws/lists"}