{"id":15404488,"url":"https://github.com/k1low/awsrm","last_synced_at":"2025-04-16T20:53:50.021Z","repository":{"id":62553865,"uuid":"92913065","full_name":"k1LoW/awsrm","owner":"k1LoW","description":"Simple AWS Resource \"READONLY\" Mapper for awspec.","archived":false,"fork":false,"pushed_at":"2018-07-16T14:41:52.000Z","size":65,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T05:41:33.693Z","etag":null,"topics":["aws"],"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/k1LoW.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":"2017-05-31T06:36:04.000Z","updated_at":"2021-10-01T22:37:38.000Z","dependencies_parsed_at":"2022-11-03T04:45:36.141Z","dependency_job_id":null,"html_url":"https://github.com/k1LoW/awsrm","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fawsrm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fawsrm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fawsrm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1LoW%2Fawsrm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1LoW","download_url":"https://codeload.github.com/k1LoW/awsrm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249275777,"owners_count":21242284,"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":["aws"],"created_at":"2024-10-01T16:13:09.527Z","updated_at":"2025-04-16T20:53:50.002Z","avatar_url":"https://github.com/k1LoW.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# awsrm [![Gem](https://img.shields.io/gem/v/awsrm.svg)](https://rubygems.org/gems/awsrm) [![Travis](https://img.shields.io/travis/k1LoW/awsrm.svg)](https://travis-ci.org/k1LoW/awsrm) \n\nSimple AWS Resource \"READONLY\" Mapper for awspec.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'awsrm'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install awsrm\n\n## Usage\n\n### ::one\n\n`Awsrm::Resource::one` identify uniquely one resource or raise error. this method not like ActiveRecord `find` .\n\n- identify `1` resource -\u003e return resource\n- identify `0` resource -\u003e raise error\n- identify `\u003e1` resources -\u003e raise error\n\n```ruby\nrequire 'awspec'\nrequire 'awsrm'\n\ndescribe route_table(Awsrm::RouteTable.one(name: 'my-route-table', vpc: 'my-vpc').id) do\n  it { should exist }\n  it { should belong_to_vpc('my-vpc') }\nend\n```\n\n### ::all\n\n`Awsrm::Resource::all` return all resources.\n\n- identify `0` resource -\u003e return empty array\n- identify `\u003e1` resources -\u003e return resources array\n\n```ruby\nrequire 'awspec'\nrequire 'awsrm'\n\nAwsrm::RouteTable.all(vpc: 'my-vpc').each do | route |\n  describe route_table(route.id) do\n    it { should exist }\n    it { should belong_to_vpc('my-vpc') }\n  end\nend\n```\n\n## Support AWS Resources\n\n[Resources](doc/resources.md)\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fawsrm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1low%2Fawsrm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1low%2Fawsrm/lists"}