使用ruby API中的非默认VPC通过API创建spot实例

使用ruby API中的非默认VPC通过API创建spot实例,ruby,amazon-web-services,amazon-ec2,aws-sdk,Ruby,Amazon Web Services,Amazon Ec2,Aws Sdk,我们使用Ruby AWS-SDK版本2创建spot请求,该请求在默认VPC中创建实例。 我们喜欢使用非默认VPC创建spot请求。 如何在创建spot请求中传递非默认VPC { :spot_price => spot_price, :type => 'one-time', :instance_count => 1, :launch_group => role, :launc

我们使用Ruby AWS-SDK版本2创建spot请求,该请求在默认VPC中创建实例。 我们喜欢使用非默认VPC创建spot请求。 如何在创建spot请求中传递非默认VPC

{
          :spot_price => spot_price,
          :type => 'one-time',
          :instance_count => 1,
          :launch_group => role,
          :launch_specification => {
              :image_id => image_id,
              :instance_type => instance_type,
              placement: {
                  availability_zone: zone
              },
              :security_groups => [security_group],
              block_device_mappings: [{
                    device_name: "/dev/sda1",
                    ebs: {
                        delete_on_termination: true
                    }
                }
              ]
          }
      }
我可以在哪里传递VPC ID,或者需要添加哪些属性来在不同的VPC中创建spot请求。