{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/3656","repository_url":"https://api.github.com/repos/mitchellh/packer","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/3656/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/3656/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/3656/events","html_url":"https://github.com/mitchellh/packer/pull/3656","id":162539928,"number":3656,"title":"Added a hook to query the security groups before launching the instan…","user":{"login":"mlosapio","id":5891867,"avatar_url":"https://avatars.githubusercontent.com/u/5891867?v=3","gravatar_id":"","url":"https://api.github.com/users/mlosapio","html_url":"https://github.com/mlosapio","followers_url":"https://api.github.com/users/mlosapio/followers","following_url":"https://api.github.com/users/mlosapio/following{/other_user}","gists_url":"https://api.github.com/users/mlosapio/gists{/gist_id}","starred_url":"https://api.github.com/users/mlosapio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlosapio/subscriptions","organizations_url":"https://api.github.com/users/mlosapio/orgs","repos_url":"https://api.github.com/users/mlosapio/repos","events_url":"https://api.github.com/users/mlosapio/events{/privacy}","received_events_url":"https://api.github.com/users/mlosapio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitchellh/packer/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/mitchellh/packer/labels/builder/amazon","name":"builder/amazon","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-27T20:23:14Z","updated_at":"2016-08-29T14:21:52Z","closed_at":"2016-07-02T00:01:42Z","pull_request":{"url":"https://api.github.com/repos/mitchellh/packer/pulls/3656","html_url":"https://github.com/mitchellh/packer/pull/3656","diff_url":"https://github.com/mitchellh/packer/pull/3656.diff","patch_url":"https://github.com/mitchellh/packer/pull/3656.patch"},"body":"Added a hook to query the security groups before launching the instance. \r\n\r\n```\r\n==> amazon-ebs: Authorizing access to port 22 the temporary security group...\r\n2016/06/27 16:19:19 packer: 2016/06/27 16:19:19 Describing tempSecurityGroup to ensure it is available: sg-6c420317\r\n2016/06/27 16:19:19 packer: 2016/06/27 16:19:19 Error in querying security group InvalidGroup.NotFound: The security group 'sg-6c420317' does not exist\r\n2016/06/27 16:19:19 packer: \tstatus code: 400, request id:\r\n2016/06/27 16:19:24 packer: 2016/06/27 16:19:24 Describing tempSecurityGroup to ensure it is available: sg-6c420317\r\n2016/06/27 16:19:24 packer: 2016/06/27 16:19:24 Found security group sg-6c420317\r\n2016/06/27 16:19:24 ui: ==> amazon-ebs: Launching a source AWS instance...\r\n```\r\n\r\nCloses #2606\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/243138338","html_url":"https://github.com/mitchellh/packer/pull/3656#issuecomment-243138338","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/3656","id":243138338,"user":{"login":"bennettellis","id":2466444,"avatar_url":"https://avatars.githubusercontent.com/u/2466444?v=3","gravatar_id":"","url":"https://api.github.com/users/bennettellis","html_url":"https://github.com/bennettellis","followers_url":"https://api.github.com/users/bennettellis/followers","following_url":"https://api.github.com/users/bennettellis/following{/other_user}","gists_url":"https://api.github.com/users/bennettellis/gists{/gist_id}","starred_url":"https://api.github.com/users/bennettellis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bennettellis/subscriptions","organizations_url":"https://api.github.com/users/bennettellis/orgs","repos_url":"https://api.github.com/users/bennettellis/repos","events_url":"https://api.github.com/users/bennettellis/events{/privacy}","received_events_url":"https://api.github.com/users/bennettellis/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T14:21:52Z","updated_at":"2016-08-29T14:21:52Z","body":"Hi, this fix seems to be mostly working, not always working for me. 5 tries with 5 seconds delay (~25 seconds total) is not adequate it seems all the time. Maybe AWS is getting slower at creating and configuring security groups.  Can this be extended to allow for more time? or maybe change to a configuration parameter.  I suspect no harm in looping 10 times?? Total ~50 seconds."}}
{"actor":{"display_login":"bennettellis"}}