def get_export_initialize_vars(database, port, connection_string):
    """ Gets the shell script that persists the Forseti env variables. """

    template = """
        export SQL_PORT={}\n
        export SQL_INSTANCE_CONN_STRING="{}"\n
        export FORSETI_DB_NAME="{}"\n
    """
    return template.format(port, connection_string, database)