Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Amazon Linux AMI

Daniel Tralamazza edited this page Sep 21, 2013 · 3 revisions

Amazon Linux AMIs are set to require tty when sudo'ing, which causes problems when Vagrant tries to do things like setup the rsync folder. In order to get around this you can send aws user_data to populate the cloud init config and change this for the ec2-user when the instance is created:

aws.user_data = "#!/bin/bash\necho 'Defaults:ec2-user !requiretty' > /etc/sudoers.d/999-vagrant-cloud-init-requiretty && chmod 440 /etc/sudoers.d/999-vagrant-cloud-init-requiretty\nyum install -y puppet\n"
Clone this wiki locally