title: An error occurred (InvalidParameterValue) when calling the RunInstances operation: Value () for parameter groupId is invalid. The value cannot be empt
body: <p>I'm getting error when creating ec2 instance from my ami:</p>
  
  <pre><code>aws ec2 run-instances --image-id ami-3e21ed44   --count 1  --instance-type t2.medium --key-name sssoft --security-groups   launch-wizard-4
  </code></pre>
  
  <p>Isn't this example same as in <a href="http://docs.aws.amazon.com/cli/latest/reference/ec2/run-instances.html#examples" rel="noreferrer">here</a>?</p>
  
  <p>It is giving this error:</p>
  
  <pre><code>An error occurred (InvalidParameterValue) when calling the RunInstances operation: Value () for parameter groupId is invalid. The value cannot be empty
  </code></pre>
  
  <p>What is wrong?</p>