{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/aws/issues/183","labels_url":"https://api.github.com/repos/chef-cookbooks/aws/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/aws/issues/183/comments","events_url":"https://api.github.com/repos/chef-cookbooks/aws/issues/183/events","html_url":"https://github.com/chef-cookbooks/aws/pull/183","id":117427769,"number":183,"title":"Add require 'aws-sdk' as needed","user":{"login":"shortdudey123","id":3051981,"avatar_url":"https://avatars.githubusercontent.com/u/3051981?v=3","gravatar_id":"","url":"https://api.github.com/users/shortdudey123","html_url":"https://github.com/shortdudey123","followers_url":"https://api.github.com/users/shortdudey123/followers","following_url":"https://api.github.com/users/shortdudey123/following{/other_user}","gists_url":"https://api.github.com/users/shortdudey123/gists{/gist_id}","starred_url":"https://api.github.com/users/shortdudey123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shortdudey123/subscriptions","organizations_url":"https://api.github.com/users/shortdudey123/orgs","repos_url":"https://api.github.com/users/shortdudey123/repos","events_url":"https://api.github.com/users/shortdudey123/events{/privacy}","received_events_url":"https://api.github.com/users/shortdudey123/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef-cookbooks/aws/labels/Signed%20CLA","name":"Signed CLA","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"miketheman","id":529516,"avatar_url":"https://avatars.githubusercontent.com/u/529516?v=3","gravatar_id":"","url":"https://api.github.com/users/miketheman","html_url":"https://github.com/miketheman","followers_url":"https://api.github.com/users/miketheman/followers","following_url":"https://api.github.com/users/miketheman/following{/other_user}","gists_url":"https://api.github.com/users/miketheman/gists{/gist_id}","starred_url":"https://api.github.com/users/miketheman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miketheman/subscriptions","organizations_url":"https://api.github.com/users/miketheman/orgs","repos_url":"https://api.github.com/users/miketheman/repos","events_url":"https://api.github.com/users/miketheman/events{/privacy}","received_events_url":"https://api.github.com/users/miketheman/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-11-17T19:15:18Z","updated_at":"2015-11-25T01:17:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef-cookbooks/aws/pulls/183","html_url":"https://github.com/chef-cookbooks/aws/pull/183","diff_url":"https://github.com/chef-cookbooks/aws/pull/183.diff","patch_url":"https://github.com/chef-cookbooks/aws/pull/183.patch"},"body":"The aws-sdk gem namespace was being called before it was required.\r\nSolves https://github.com/chef-cookbooks/aws/issues/181"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/aws/issues/comments/159455379","html_url":"https://github.com/chef-cookbooks/aws/pull/183#issuecomment-159455379","issue_url":"https://api.github.com/repos/chef-cookbooks/aws/issues/183","id":159455379,"user":{"login":"miketheman","id":529516,"avatar_url":"https://avatars.githubusercontent.com/u/529516?v=3","gravatar_id":"","url":"https://api.github.com/users/miketheman","html_url":"https://github.com/miketheman","followers_url":"https://api.github.com/users/miketheman/followers","following_url":"https://api.github.com/users/miketheman/following{/other_user}","gists_url":"https://api.github.com/users/miketheman/gists{/gist_id}","starred_url":"https://api.github.com/users/miketheman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miketheman/subscriptions","organizations_url":"https://api.github.com/users/miketheman/orgs","repos_url":"https://api.github.com/users/miketheman/repos","events_url":"https://api.github.com/users/miketheman/events{/privacy}","received_events_url":"https://api.github.com/users/miketheman/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T01:17:18Z","updated_at":"2015-11-25T01:17:18Z","body":"I guess that's reasonable, but the cookbook explicitly states in it's usage that it expects the default recipe to be run prior to any library functions: https://github.com/chef-cookbooks/aws#defaultrb\r\n\r\nI think that if the desire is to make it a better method for calling the code via LWRP without the default recipe (which, anecdotally, should be safe on every run, what's the danger of including it in a node's run list?), then this would probably be structured in a better manner to DRY up the invocations of `require/rescue` - it's pretty much repetition at this point."}}