{"id":17250373,"url":"https://github.com/sorah/hocho-ec2","last_synced_at":"2025-03-26T06:21:14.334Z","repository":{"id":56876516,"uuid":"140105085","full_name":"sorah/hocho-ec2","owner":"sorah","description":"hocho host inventory provider for Amazon EC2","archived":false,"fork":false,"pushed_at":"2021-10-03T01:03:46.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T13:28:13.087Z","etag":null,"topics":["ec2","hocho","itamae","mitamae"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/sorah.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-07T17:40:36.000Z","updated_at":"2021-10-03T01:03:48.000Z","dependencies_parsed_at":"2022-08-20T22:30:47.670Z","dependency_job_id":null,"html_url":"https://github.com/sorah/hocho-ec2","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorah%2Fhocho-ec2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorah%2Fhocho-ec2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorah%2Fhocho-ec2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorah%2Fhocho-ec2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sorah","download_url":"https://codeload.github.com/sorah/hocho-ec2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245599030,"owners_count":20642043,"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","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":["ec2","hocho","itamae","mitamae"],"created_at":"2024-10-15T06:47:04.393Z","updated_at":"2025-03-26T06:21:14.303Z","avatar_url":"https://github.com/sorah.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hocho-ec2: Host inventory for Amazon EC2\n\nThis is a [sorah/hocho](https://github.com/sorah/hocho) inventory provider plugin that retrieves EC2 instance information as host data.\n\n## Installation\n\nAdd this line to your Gemfile:\n\n```ruby\ngem 'hocho-ec2'\n```\n\n## Usage\n\n```yaml\n# hocho.yml\ninventory_providers:\n  - ec2:\n      ## AWS Region\n      region: ap-northeast-1\n      ## ec2:DescribeInstances API filters\n      filters:\n        - name: instance-state-name\n          values: ['running']\n      ## ERB Template for host.name. You can use `tag(instance, \"NAME\")` and `tag(vpc, \"NAME\")` helper.\n      hostname_template: '\u003c%= tag(instance, \"Name\") %\u003e.\u003c%= tag(vpc, \"Name\") %\u003e.compute.nkmi.me'\n      ## Template - Ruby script for host.properties.template. Expected to return an Array.\n      runlist_template: '%w(site.rb entry_ec2.rb entry_ec2_role.rb)'\n      ## Cache the result for specified duration.\n      cache_path: tmp/hocho-ec2-cache.apne1.yml\n      cache_duration: 3600\n\n  ## You can add multiple instnaces of a provider to cover more regions:\n  # - ec2:\n  #     region: us-west-2\n  #     ...\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/sorah/hocho-ec2.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorah%2Fhocho-ec2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsorah%2Fhocho-ec2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorah%2Fhocho-ec2/lists"}