def get_cloudknox_config()

in aws-cloudknox-config/ssm/CloudKnox_IAMRightsize.py [0:0]


def get_cloudknox_config():
    """
    get cloudknox config, throws exception if invalid
    :return config: cloudknox config dict
    """
    config = json.loads(get_secret_value(ck_config_name))
    for key in config:
        if not config.get(key, ''):
            logger.error(f"either key {key} do not exist, or non empty value found")
            raise Exception()
    return config