def check_status(settings, instance_id):
    # Get s3 bucket & key
    bucket, key = open_s3(settings, settings['asset_bucket'], 
                          "%s._cc_" % instance_id)

    if key.exists() and key.get_contents_as_string() == 'running':
        return True
    else: return False
Check the build status semaphore for an instance
dataset/ETHPy150Open newsapps/cloud-commander/cloud_commander/recipes.py/check_status