title: Create spot instance by API with non-default VPC in ruby API
body: <p>We use Ruby AWS-SDK version 2 for creating spot request that creates instance in default VPC.
  We Like to create spot request with non-default VPC. 
  How can we pass non-default VPC in create spot request?</p>
  
  <pre><code>{
            :spot_price =&gt; spot_price,
            :type =&gt; 'one-time',
            :instance_count =&gt; 1,
            :launch_group =&gt; role,
            :launch_specification =&gt; {
                :image_id =&gt; image_id,
                :instance_type =&gt; instance_type,
                placement: {
                    availability_zone: zone
                },
                :security_groups =&gt; [security_group],
                block_device_mappings: [{
                      device_name: "/dev/sda1",
                      ebs: {
                          delete_on_termination: true
                      }
                  }
                ]
            }
        }
  </code></pre>
  
  <p>where I can pass VPC ID or which attribute I need to add to create spot request in different VPC.
  <a href="http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Client.html#request_spot_instances-instance_method" rel="nofollow noreferrer">http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Client.html#request_spot_instances-instance_method</a></p>