Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

sassoftware/viya-apps-serverless-score

Repository files navigation

Archived project: This project is no longer under actively developement and was archived on 2024-09-25.

Serverless Function and SAS Viya - A Good Match

An AWS serverless function for scoring with astore.

Installation

  1. Clone this repository
  2. Do an 'npm install'
  3. Edit and/or replace the serverless.yml to be appropriate for your environment
    • Pay attention to the environment section. This is where you will define how to logon to Viya and the astore to use.
  4. Deploy the function

A note on securing your password

In this example we are storing the userid and password in the environment variables. This is to the keep the focus on the internals of serverless functions for SAS Viya. Locally you can use "serverless variables" to secure the information during development. However for production deployment recommend that you refer to your provider's recommendations and the user community for best practices. Usually there are multiple ways to do it.

Tools

Recommend serverless cli. But use what ever makes you comfortable

Serverless functions in this repository

  1. app - Invoke this from your browser. In the app you can enter some information for a loan application.

  2. score - This serverless function accesses Viya to score the loan.

About

AWS serverless function for scoring with astore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published