With the help of knife ec2 plugin I have created an instance in AWS.
knife ec2 server create -I ami-04763b3055de4860b -f t2.micro -Z us-east-1a -N testEC2 -x ubuntu --sudo --associate-public-ip
Now I want to bootstrap the instance to my on-premise chef server. How it can be done?
Here is the bootstrap commands i used,
knife bootstrap ec2-54-160-171-106.compute-1.amazonaws.com -N cheftest --ssh-user ubuntu --sudo --i ./.chef/ubuntu-7cff793ad2fb518fd916.pem --sudo