{"action":"closed","issue":{"url":"https://api.github.com/repos/WGBH/aws-wrapper/issues/50","repository_url":"https://api.github.com/repos/WGBH/aws-wrapper","labels_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues/50/comments","events_url":"https://api.github.com/repos/WGBH/aws-wrapper/issues/50/events","html_url":"https://github.com/WGBH/aws-wrapper/issues/50","id":137336659,"number":50,"title":"SshOpter#just_ips fails","user":{"login":"afred","id":1507490,"avatar_url":"https://avatars.githubusercontent.com/u/1507490?v=3","gravatar_id":"","url":"https://api.github.com/users/afred","html_url":"https://github.com/afred","followers_url":"https://api.github.com/users/afred/followers","following_url":"https://api.github.com/users/afred/following{/other_user}","gists_url":"https://api.github.com/users/afred/gists{/gist_id}","starred_url":"https://api.github.com/users/afred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afred/subscriptions","organizations_url":"https://api.github.com/users/afred/orgs","repos_url":"https://api.github.com/users/afred/repos","events_url":"https://api.github.com/users/afred/events{/privacy}","received_events_url":"https://api.github.com/users/afred/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"afred","id":1507490,"avatar_url":"https://avatars.githubusercontent.com/u/1507490?v=3","gravatar_id":"","url":"https://api.github.com/users/afred","html_url":"https://github.com/afred","followers_url":"https://api.github.com/users/afred/followers","following_url":"https://api.github.com/users/afred/following{/other_user}","gists_url":"https://api.github.com/users/afred/gists{/gist_id}","starred_url":"https://api.github.com/users/afred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afred/subscriptions","organizations_url":"https://api.github.com/users/afred/orgs","repos_url":"https://api.github.com/users/afred/repos","events_url":"https://api.github.com/users/afred/events{/privacy}","received_events_url":"https://api.github.com/users/afred/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-29T18:47:33Z","updated_at":"2016-02-29T19:09:08Z","closed_at":"2016-02-29T19:09:08Z","body":"**Reproduce:**\r\n  * build resources with: `ruby scripts/build.sh --name foo.wgbh-mla-test.org`\r\n  * try to run: `ruby scripts/ssh_opt.rb --name foo.wgbh-mla-test.org --just_ips`\r\n  * You'll get the following error:\r\n    ```\r\n    /Users/andrew_myers/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/resolv.rb:491:in `getresource': DNS result has no information for openvault-qa1.wgbh-mla-test.org (Resolv::ResolvError)\r\n\r\n        from /Users/andrew_myers/Projects/WGBH/aws-wrapper/lib/core/dns_wrapper.rb:12:in `lookup_cname'\r\n        from /Users/andrew_myers/Projects/WGBH/aws-wrapper/lib/util/ssh_opter.rb:25:in `lookup_ip'\r\n        from /Users/andrew_myers/Projects/WGBH/aws-wrapper/lib/util/ssh_opter.rb:32:in `just_ips'\r\n    ```\r\n\r\nThe `#just_ips` method expects the DNS to have been set up already, but we've factored that out of `scirpts/build.sh` doesn't do that anymore, by design.\r\n\r\nSo we need a way to retrieve IP addresses, given only the name _tag_ (not the CNAME, which may not exist).\r\n\r\n**Done when** running `ruby scripts/ssh_opt.rb --name foo.wgbh-mla-test.org --just_ips` returns IPs associated with EC2 instances tagged with `--name`."}}