Skip to content
Advertisement

Packer Amazon EBS Chef – sorry, you must have a tty to run sudo

I want to use Packer for provisioning image for amazon ebs using chef.

I am getting the following error message:

JavaScript

example.json

JavaScript

Output

JavaScript

I think the relevant error message is:

JavaScript

Does anybody have an idea?

Advertisement

Answer

You can use ssh_pty : true to have a TTY.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement