{"id":20900720,"url":"https://github.com/invit/ec2meta","last_synced_at":"2026-04-20T23:32:32.065Z","repository":{"id":57550689,"uuid":"308760542","full_name":"invit/ec2meta","owner":"invit","description":"Simple CLI to query AWS EC2 instance metadata.","archived":false,"fork":false,"pushed_at":"2020-10-31T00:09:52.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-30T07:29:46.832Z","etag":null,"topics":[],"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/invit.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-10-30T22:52:33.000Z","updated_at":"2020-10-31T00:09:55.000Z","dependencies_parsed_at":"2022-09-01T06:50:58.481Z","dependency_job_id":null,"html_url":"https://github.com/invit/ec2meta","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/invit/ec2meta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invit%2Fec2meta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invit%2Fec2meta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invit%2Fec2meta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invit%2Fec2meta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/invit","download_url":"https://codeload.github.com/invit/ec2meta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/invit%2Fec2meta/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32070656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T21:26:33.338Z","status":"ssl_error","status_checked_at":"2026-04-20T21:26:22.081Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-18T11:21:56.380Z","updated_at":"2026-04-20T23:32:32.041Z","avatar_url":"https://github.com/invit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ec2meta\n\n![build](https://github.com/invit/ec2meta/workflows/build/badge.svg)\n\nSimple CLI to query AWS EC2 instance metadata.\n\n## Usage\n\n``` \n$ ec2meta\nDisplay EC2 instance metadata\n\nUsage:\n  ec2meta [command]\n\nAvailable Commands:\n  get         Returns arbitrary metadata by path\n  help        Help about any command\n  version     Print the version number of ec2meta\n\nFlags:\n  -h, --help   help for ec2meta\n\nUse \"ec2meta [command] --help\" for more information about a command.\n```\n\n### Query\n\n``` \n$ ec2meta help get\nReturns arbitrary metadata by path\n\nUsage:\n  ec2meta get \u003cpath\u003e [flags]\n\nFlags:\n  -h, --help   help for get\n```\n\n`\u003cpath\u003e` can either point to a directory path, like\n\n``` \n$ ec2meta get /\nami-id\nami-launch-index\nami-manifest-path\nblock-device-mapping/\nevents/\nhibernation/\nhostname\niam/\nidentity-credentials/\ninstance-action\ninstance-id\ninstance-life-cycle\ninstance-type\nlocal-hostname\nlocal-ipv4\nmac\nmetrics/\nnetwork/\nplacement/\nprofile\npublic-hostname\npublic-ipv4\nreservation-id\nsecurity-groups\nservices/\n```\n\na single element\n\n```\n$ ec2meta get /hostname\nip-10-0-0-248.eu-central-1.compute.internal\n```\n\nor reference either all `[*]` elements or a specific one (e.g. `[0]`) in a list:\n\n```\n$ ec2meta get /network/interfaces/macs/[0]/vpc-id\nvpc-XXXXXXXX\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvit%2Fec2meta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvit%2Fec2meta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvit%2Fec2meta/lists"}