update the executor template to use VPC instances.

This commit is contained in:
Jake Moshenko 2015-02-02 14:55:34 -05:00
parent 3687419ab3
commit db8493f254

View file

@ -120,7 +120,8 @@ class EC2Executor(BuilderExecutor):
reservation = yield From(ec2_conn.run_instances(
coreos_ami,
instance_type=self.executor_config['EC2_INSTANCE_TYPE'],
security_groups=self.executor_config['EC2_SECURITY_GROUP_IDS'],
subnet_id=self.executor_config['EC2_VPC_SUBNET_ID'],
security_group_ids=self.executor_config['EC2_SECURITY_GROUP_IDS'],
key_name=self.executor_config.get('EC2_KEY_NAME', None),
user_data=user_data,
instance_initiated_shutdown_behavior='terminate',