Archived project: This project is no longer under actively developement and was archived on 2024-09-25.
An AWS serverless function for scoring with astore.
- Clone this repository
- Do an 'npm install'
- 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.
- Deploy the function
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.
Recommend serverless cli. But use what ever makes you comfortable
-
app - Invoke this from your browser. In the app you can enter some information for a loan application.
-
score - This serverless function accesses Viya to score the loan.