'Use the deployer\'s ``IBlockDeviceAPI`` to attach the volume.'

def run(self, deployer, state_persister):

    api = deployer.async_block_device_api
    getting_id = api.compute_instance_id()
    def got_compute_id(compute_instance_id):
        return api.attach_volume(self.blockdevice_id, attach_to=compute_instance_id)
    attaching = getting_id.addCallback(got_compute_id)
    return attaching
