From db8493f254a9b7d884c2afdc93260cacc2109a22 Mon Sep 17 00:00:00 2001 From: Jake Moshenko Date: Mon, 2 Feb 2015 14:55:34 -0500 Subject: [PATCH] update the executor template to use VPC instances. --- buildman/manager/executor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildman/manager/executor.py b/buildman/manager/executor.py index 786731992..806ff7845 100644 --- a/buildman/manager/executor.py +++ b/buildman/manager/executor.py @@ -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',