Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ec2_launch hangs after key pair overwrite prompt #18

Open
kmctown opened this issue Apr 30, 2014 · 2 comments
Open

ec2_launch hangs after key pair overwrite prompt #18

kmctown opened this issue Apr 30, 2014 · 2 comments

Comments

@kmctown
Copy link

kmctown commented Apr 30, 2014

Your library looks great -- trying to get it working in my production environment. I want to have multiple instances with the same name, API, for instance, because it seems from reading the docs that's the preferred method to utilize deploy_many. I'm running into the following issue:

Generating public/private rsa key pair.
<KEY_PATH> already exists.
Overwrite (y/n)?

I would like to choose n so that it would use the existing key pair, assuming that was the intention. The script then hangs indefinitely.

I might be doing something wrong but bringing it up here.

@ghost
Copy link

ghost commented May 18, 2014

I have the same issue.

@jingconan
Copy link

The culprit is here
https://github.com/bevacqua/grunt-ec2/blob/master/tasks/ec2_create_keypair.js#L37

It calls ssh-keygen in child process. However, the stdin input (aka y/n you typed) is not passed in, so it hanges there.

A hacky workaround is to just comment this line when you need to use existing key value pair

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants