Bootstrap new instance:
knife bootstrap my.instance.compute.amazonaws.com -i my_key.pem -x ubuntu --sudo
Change password for root
and ubuntu
users (you will be unable to change password and run sudo
under any user after 'sudo chef-client` command):
sudo su
passwd ubuntu
passwd