{"id":34903881,"url":"https://github.com/mocyuto/ec2-search","last_synced_at":"2025-12-26T09:19:16.422Z","repository":{"id":39581230,"uuid":"292240191","full_name":"mocyuto/ec2-search","owner":"mocyuto","description":"ec2-search can search EC2 service easily. named \"ec2s\"","archived":false,"fork":false,"pushed_at":"2023-03-31T19:57:25.000Z","size":220,"stargazers_count":15,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-29T08:25:11.563Z","etag":null,"topics":["aws","cargo","cli","ec2","ec2-search","ec2s","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/mocyuto.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":"2020-09-02T09:34:48.000Z","updated_at":"2024-01-10T06:14:17.000Z","dependencies_parsed_at":"2023-02-16T22:15:57.985Z","dependency_job_id":null,"html_url":"https://github.com/mocyuto/ec2-search","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/mocyuto/ec2-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mocyuto%2Fec2-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mocyuto%2Fec2-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mocyuto%2Fec2-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mocyuto%2Fec2-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mocyuto","download_url":"https://codeload.github.com/mocyuto/ec2-search/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mocyuto%2Fec2-search/sbom","scorecard":{"id":655838,"data":{"date":"2025-08-11","repo":{"name":"github.com/mocyuto/ec2-search","commit":"93b7a74e897a9d1df34bfb956c4d90da6dbb0d23"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:85: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:105: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/mocyuto/ec2-search/test.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:85","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.14.1 not signed: https://api.github.com/repos/mocyuto/ec2-search/releases/62862730","Warn: release artifact v0.14.0 not signed: https://api.github.com/repos/mocyuto/ec2-search/releases/56261926","Warn: release artifact v0.13.0 not signed: https://api.github.com/repos/mocyuto/ec2-search/releases/47105662","Warn: release artifact v0.12.0 not signed: https://api.github.com/repos/mocyuto/ec2-search/releases/38465783","Warn: release artifact v0.11.0 not signed: https://api.github.com/repos/mocyuto/ec2-search/releases/38003440","Warn: release artifact v0.14.1 does not have provenance: https://api.github.com/repos/mocyuto/ec2-search/releases/62862730","Warn: release artifact v0.14.0 does not have provenance: https://api.github.com/repos/mocyuto/ec2-search/releases/56261926","Warn: release artifact v0.13.0 does not have provenance: https://api.github.com/repos/mocyuto/ec2-search/releases/47105662","Warn: release artifact v0.12.0 does not have provenance: https://api.github.com/repos/mocyuto/ec2-search/releases/38465783","Warn: release artifact v0.11.0 does not have provenance: https://api.github.com/repos/mocyuto/ec2-search/releases/38003440"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"22 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2021-0139","Warn: Project is vulnerable to: RUSTSEC-2021-0145 / GHSA-g98v-hv3f-hcfr","Warn: Project is vulnerable to: RUSTSEC-2024-0375","Warn: Project is vulnerable to: GHSA-mjv9-vp6w-3rc9","Warn: Project is vulnerable to: RUSTSEC-2022-0078 / GHSA-f85w-wvc7-crwc","Warn: Project is vulnerable to: RUSTSEC-2023-0034 / GHSA-f8vr-r385-rh5r","Warn: Project is vulnerable to: RUSTSEC-2024-0003 / GHSA-8r5v-vm4m-4g25","Warn: Project is vulnerable to: RUSTSEC-2024-0332 / GHSA-q6cp-qfwq-4gcv","Warn: Project is vulnerable to: RUSTSEC-2024-0384","Warn: Project is vulnerable to: RUSTSEC-2024-0019 / GHSA-r8w9-5wcg-vfj7","Warn: Project is vulnerable to: RUSTSEC-2024-0370","Warn: Project is vulnerable to: RUSTSEC-2022-0013 / GHSA-m5pq-gvj9-9vr8","Warn: Project is vulnerable to: RUSTSEC-2025-0010","Warn: Project is vulnerable to: GHSA-4p46-pwfr-66x6","Warn: Project is vulnerable to: RUSTSEC-2025-0009","Warn: Project is vulnerable to: GHSA-c86p-w88r-qvqr","Warn: Project is vulnerable to: RUSTSEC-2024-0336","Warn: Project is vulnerable to: RUSTSEC-2023-0001 / GHSA-7rrj-xr53-82p7","Warn: Project is vulnerable to: RUSTSEC-2023-0005 / GHSA-4q83-7cq4-p6wg","Warn: Project is vulnerable to: GHSA-rr8g-9fpq-6wmg","Warn: Project is vulnerable to: RUSTSEC-2025-0023","Warn: Project is vulnerable to: RUSTSEC-2023-0052 / GHSA-8qv2-5vq6-g2g7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T14:37:09.327Z","repository_id":39581230,"created_at":"2025-08-21T14:37:09.327Z","updated_at":"2025-08-21T14:37:09.327Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28051013,"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-12-26T02:00:06.189Z","response_time":55,"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":["aws","cargo","cli","ec2","ec2-search","ec2s","rust"],"created_at":"2025-12-26T09:19:10.151Z","updated_at":"2025-12-26T09:19:16.414Z","avatar_url":"https://github.com/mocyuto.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ec2-search \n![Test](https://github.com/mocyuto/ec2-search/workflows/Test/badge.svg?branch=master)\n![](https://img.shields.io/crates/v/ec2-search)\n![](https://img.shields.io/github/v/release/mocyuto/ec2-search?sort=semver)\n\nSearch EC2 instance easily\n\n## Installation\n\n### Cargo Install\n\nWith Rust's package manager cargo, you can install via:\n```shell script\n$ cargo install ec2-search\n```\nIf you install the latest master branch commit\n```shell script\n$ cargo install --git https://github.com/mocyuto/ec2-search --branch master\n```\n\n### Homebrew\nmacOS or Linux\n\n```shell script\n$ brew tap mocyuto/tap\n$ brew install ec2-search\n```\n\n### Setup Completion\n\nIf you install by `brew` command, it is set **automatically**.\nOtherwise, you run below. \n\n```zsh\n# zsh\n$ ec2s completion zsh \u003e /usr/local/share/zsh/site-functions/_ec2s\n\n# bash\n$ ec2s completion bash \u003e /usr/local/etc/bash_completion.d/ec2s\n```\n\n\n## Usage\n\n```shell script\n$ ec2s help\n```\n\n### AWS credentials\n\nec2-search needs aws credentials, so you need to set credentials.\nYou can use Environment value or `\"~/.aws/credentials\"`.\n\n#### profile\n\nif set and not empty the value of the environment variable `AWS_PROFILE` otherwise `default`\n\n### Instance\n\nSearch instance info.\n```shell script\n$ ec2s instance help\n# or alias. see help\n$ ec2s i help \n```\n#### info\ndisplay basic info\n\n```shell script\n$ ec2s i info -q api\nID           Name       Status   Type\ni-012345678  test-api1  running  t2.micro\ncounts: 1\n\n# display wide when set -o option\n$ ec2s i info -q api -o wide\nID           Name       Status   Type     PrivateDNS                                      PrivateIP  AZ              LifeCycle\ni-012345678  test-api1  running  t2.micro ip-10-10-10-10.ap-northeast-1.compute.internal  10.0.0.1   ap-northeast-1  spot\n\n# display tag column when set -T option\n$ ec2s i info -q api -T Name,env\nID           Name       Status   Type     Name      env\ni-012345678  test-api1  running  t2.micro test-api1 staging\n\n# display all tag columns when set --show-all-tags option\n$ ec2s i info -q api --show-all-tags\nID           Name       Status   Type     Name      env\ni-012345678  test-api1  running  t2.micro test-api1 staging\n```\n\n\n#### instance ids\ndisplay instance ids\n\n```shell script\n## like search\n$ ec2s instance ids -q \"api\"\nID           Name\ni-012345678  test-api1\ni-023456789  test-api2\ncounts: 2\n\n```\n\n#### instance ips\n\nDisplay instance public and private IPs.\n\n```shell script\n$ ec2s instance ips -q \"api\"\nPrivate IP   Public IP  Name\n10.0.0.1                test-api1\n10.0.0.2                test-api2\ncounts: 2\n```\n\n#### instance DNS name\n\nDisplay instance public and private DNS name\n\n```shell script\n$ ec2s i dns -q api\nPrivate DNS                                      Public DNS  Name\n ip-10-10-10-10.ap-northeast-1.compute.internal              test-api1\n ip-10-10-10-11.ap-northeast-1.compute.internal              test-api2\ncounts: 2\n```\n\n### Target Group\n\n```shell script\n$ ec2s target-group help\n# or alias\n$ ec2s tg help\n```\n\n#### Info\n\nDisplay Target Group info\n\n```shell script\n$ ec2s tg info -q api\n Name            TargetType  LB\n aaaaa-api       ip          [\"aaaaa-bbbb-apialb\"]\n bbbbb-api       ip          [\"bbbbb-cccc-apiinteralb\"]\n api-web         instance    [\"prd-api-web\"]\ncounts: 5\n```\n\n#### Target Health\n\nDisplay Target Health\n\n```shell script\n$ ec2s tg health -q api-web\n ID                   Port  Status\n i-01002020202000101  80    healthy\ncounts: 1\n```\n\n\n### Auto Scaling Group\n\n```shell script\n$ ec2s auto-scaling-group help\n# or alias\n$ ec2s asg help\n```\n\n#### Info\n\nDisplay Auto Scaling Group info\n```shell script\n$ ec2s asg info -q eks\n Name               Instances  Desired  Min  Max\n prd-eks-autoscale  7          7        1    40\n prd-eks-stateful   6          6        4    20\n stg-eks-autoscale  1          1        1    20\n stg-eks-stateful   2          2        1    10\ncounts: 4\n``` \n\n#### Instances\n\nDisplay Auto Scaling Group Instances.\n\n```shell script\n$ ec2s asg inst -q stg-eks-api-autoscale\n ID                   LifeCycle  InstanceType  AZ               Status\n i-01010101010101011  InService  t3.medium     ap-northeast-1c  Healthy\ncounts: 1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmocyuto%2Fec2-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmocyuto%2Fec2-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmocyuto%2Fec2-search/lists"}