title: Knife ec2 command fails with this error
body: <p>I am trying to spin up a server on AWS using the knife ec2 command. But the knife command fails with this error;</p>
  
  <pre><code>ERROR: You have not provided a valid image (AMI) value.
  </code></pre>
  
  <p>I start by listing the servers I already have on Amazon. </p>
  
  <pre><code>[root@localhost .chef]# knife ec2 server list --region us-west-2
  
  Instance ID  Name         Public IP     Private IP    Flavor    Image         SSH Key  Security Groups  IAM Profile  State  
  i-ced19d0b   webserver-1  52.27.79.224  172.31.37.89  t2.micro  ami-d5c5d1e5  visa     launch-wizard-2               running
  </code></pre>
  
  <p>As you can see above I have a  single server (webserver-1) with IP address 52.27.79.224. </p>
  
  <p>I created this server manually on the AWS console.</p>
  
  <p>Okay when I run the knife ec2 command it gives the following error:</p>
  
  <pre><code>[root@localhost .chef]# knife ec2 server create -S visa  -I ami-d5c5d1e5 --region=us-west-2
  
  ERROR: You did not provide a valid 'Image' value.
  </code></pre>
  
  <p>I tried the same command without the –region option. It still gave the same error as seen below.</p>
  
  <pre><code>[root@localhost .chef]# knife ec2 server create -S visa -I ami-d5c5d1e5
  
  ERROR: You did not provide a valid 'Image' value.
  </code></pre>
  
  <p>But the image I’m using is the same image I got from running knife server list command as seen below.</p>
  
  <pre><code>[root@localhost .chef]# knife ec2 server list --region us-west-2
  
  Instance ID  Name         Public IP     Private IP    Flavor    Image         SSH Key  Security Groups  IAM Profile  State  
  i-ced19d0b   webserver-1  52.27.79.224  172.31.37.89  t2.micro  ami-d5c5d1e5  visa     launch-wizard-2               running
  </code></pre>
  
  <p>As you see above I am using the same amazon machine image  ami-d5c5d1e5.</p>
  
  <p>I can't figure what I'm doing wrong. I just started learning chef and AWS.</p>
  
  <p>I'm a complete newbie to this. Please help.</p>
  
  <p>By the way I'm using the free trial version of hosted chef.</p>
  
  <p>Thank you in advance.</p>