title: Creating a launch configuration in different region and vpc with Boto
body: <p>I can't seem to create a launch configuration in a specific region and a defined vpc.</p>
  
  <pre><code>aws_access_key_id = 'XXX'
  aws_secret_access_key = 'XXX'
  ec2_keypair = 'XXX'
  ec2_security_groups = ['sg-XXXX']
  ec2_region = 'us-west-1'
  instance_type = 'm1.medium'
  user_data = None
  
  # Build the launch configuration
  launch_config = LaunchConfiguration(
      name=name, image_id=image_id, key_name=ec2_keypair, user_data=user_data,
      security_groups=ec2_security_groups, instance_type=instance_type)
  
  # Get the Region
  conn = EC2Connection(aws_access_key_id=access_key_id,
                       aws_secret_access_key=secret_access_key)
  region = next((r for r in conn.get_all_regions() if r.name == ec2_region), None)
  
  # Connect to the Autoscaler
  conn = boto.ec2.autoscale.connect_to_region(
             region, aws_access_key_id=access_key_id, 
             aws_secret_access_key=secret_access_key)
  
  
  conn.create_launch_configuration(launch_config)
  </code></pre>
  
  <p>When I run this I get the error <code>No default VPC</code>.  This aligns with doing this at the command line (run_instances) so there I've just added the subnet.  </p>
  
  <pre><code>&lt;ErrorResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/"&gt;
    &lt;Error&gt;
      &lt;Type&gt;Sender&lt;/Type&gt;
      &lt;Code&gt;ValidationError&lt;/Code&gt;
      &lt;Message&gt;No default VPC for this user&lt;/Message&gt;
    &lt;/Error&gt;
  </code></pre>
  
  <p><strong>Where do I append the subnet or VPC for this to work?</strong></p>