from lib import ec2, action


class CreateVM(action.BaseAction):

    def run(self, ami, instance_type):
        e = ec2.EC2(self.region)
        e.setup(True)
        return e.createVM(ami, instance_type)

from lib import action


class CreateVM(action.BaseAction):

    def run(self, ami, instance_type):
        self.ec2.setup(True)
        return self.ec2.createVM(ami, instance_type)

migrate aws.vmcreate to new base impl.