def retrieve_secret()

in src/retrieveInfluxDBSecrets.py [0:0]


def retrieve_secret(secret_arn):
    try:
        response = get_secret_over_ipc(secret_arn)
        secret_json = json.loads(response)
        return "{} {}".format(secret_json["influxdb_username"], secret_json["influxdb_password"])
    except Exception as e:
        logging.error("Exception while retrieving secret: {}".format(secret_arn), exc_info=True)
        raise e