{"action":"created","issue":{"url":"https://api.github.com/repos/mitchellh/packer/issues/1801","labels_url":"https://api.github.com/repos/mitchellh/packer/issues/1801/labels{/name}","comments_url":"https://api.github.com/repos/mitchellh/packer/issues/1801/comments","events_url":"https://api.github.com/repos/mitchellh/packer/issues/1801/events","html_url":"https://github.com/mitchellh/packer/issues/1801","id":53126523,"number":1801,"title":"Packer does not clean up temporary key pairs.","user":{"login":"myoung34","id":879922,"avatar_url":"https://avatars.githubusercontent.com/u/879922?v=3","gravatar_id":"","url":"https://api.github.com/users/myoung34","html_url":"https://github.com/myoung34","followers_url":"https://api.github.com/users/myoung34/followers","following_url":"https://api.github.com/users/myoung34/following{/other_user}","gists_url":"https://api.github.com/users/myoung34/gists{/gist_id}","starred_url":"https://api.github.com/users/myoung34/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myoung34/subscriptions","organizations_url":"https://api.github.com/users/myoung34/orgs","repos_url":"https://api.github.com/users/myoung34/repos","events_url":"https://api.github.com/users/myoung34/events{/privacy}","received_events_url":"https://api.github.com/users/myoung34/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-12-30T16:17:26Z","updated_at":"2015-02-18T23:36:18Z","closed_at":null,"body":"```bash\r\n$ ls -alh *.pem\r\nls: *.pem: No such file or directory\r\n\r\n$ sh base_builder.sh #this just sets env vars and runs packer build Packer.json\r\nDebug mode enabled. Builds will not be parallelized.\r\namazon-ebs output will be in this color.\r\n\r\n==> amazon-ebs: Inspecting the source AMI...\r\n==> amazon-ebs: Pausing after run of step 'StepSourceAMIInfo'. Press enter to continue. \r\n==> amazon-ebs: Creating temporary keypair: packer 54a2cfd6-57a0-974b-a5e8-eadbdd81aa3f\r\n    amazon-ebs: Saving key for debug purposes: ec2_amazon-ebs.pem\r\n==> amazon-ebs: Pausing after run of step 'StepKeyPair'. Press enter to continue. \r\n==> amazon-ebs: Pausing after run of step 'StepSecurityGroup'. Press enter to continue. \r\n==> amazon-ebs: Launching a source AWS instance...\r\n    amazon-ebs: Instance ID: i-1e3a6cf2\r\n==> amazon-ebs: Waiting for instance (i-1e3a6cf2) to become ready...\r\n^C==> amazon-ebs: Error waiting for instance (i-1e3a6cf2) to become ready: interrupted\r\n==> amazon-ebs: Terminating the source AWS instance...\r\n==> amazon-ebs: Pausing before cleanup of step 'StepSecurityGroup'. Press enter to continue. ==> amazon-ebs: Pausing before cleanup of step 'StepKeyPair'. Press enter to continue. ==> amazon-ebs: Deleting temporary keypair...\r\n==> amazon-ebs: Pausing before cleanup of step 'StepSourceAMIInfo'. Press enter to continue. Build 'amazon-ebs' errored: Error waiting for instance (i-1e3a6cf2) to become ready: interrupted\r\nCleanly cancelled builds after being interrupted.\r\n\r\n$ ls -alh *.pem\r\n-rw-------  1 myoung  854564030   1.6K Dec 30 10:16 ec2_amazon-ebs.pem\r\n```"},"comment":{"url":"https://api.github.com/repos/mitchellh/packer/issues/comments/74972336","html_url":"https://github.com/mitchellh/packer/issues/1801#issuecomment-74972336","issue_url":"https://api.github.com/repos/mitchellh/packer/issues/1801","id":74972336,"user":{"login":"renat-sabitov-sirca","id":6732723,"avatar_url":"https://avatars.githubusercontent.com/u/6732723?v=3","gravatar_id":"","url":"https://api.github.com/users/renat-sabitov-sirca","html_url":"https://github.com/renat-sabitov-sirca","followers_url":"https://api.github.com/users/renat-sabitov-sirca/followers","following_url":"https://api.github.com/users/renat-sabitov-sirca/following{/other_user}","gists_url":"https://api.github.com/users/renat-sabitov-sirca/gists{/gist_id}","starred_url":"https://api.github.com/users/renat-sabitov-sirca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renat-sabitov-sirca/subscriptions","organizations_url":"https://api.github.com/users/renat-sabitov-sirca/orgs","repos_url":"https://api.github.com/users/renat-sabitov-sirca/repos","events_url":"https://api.github.com/users/renat-sabitov-sirca/events{/privacy}","received_events_url":"https://api.github.com/users/renat-sabitov-sirca/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T23:36:18Z","updated_at":"2015-02-18T23:36:18Z","body":"@myoung34 Then there is no instance to access and the key is useless. They are disposable on-off keys."}}