Skip to content

future-standard/scorer-scheduled-job-create-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

SCORER Cloud scheduled job create sample

This sample Python script is AWS Lambda function to invoke SCORER Cloud API to create scheduled jobs. It is assumed that schleduled invocations are made by CloudWatch Events.

Requrement

Python 3.7

Usage

1. Set required information to config.json

{
    "realm": "pub",
    "device_id": "LT_....", # Device ID can be obtained from the SCORER Cloud URL
    "api_key": "", # API can be obtained from SCORE Cloud settings menu
    "algorithm_id": ""
}

2. Downlod requests module

Python requests module is not installed as default library in AWS Lambda, so you need to download this to local folder.

pip3 install requests -t .

3. Create AWS Lambda function

Create new Lambda function with Python 3.7 runtime.

Compress this directory's contents as .zip and upload it.

4. Set CloudWatch Events as trigger

Set Cloud Watch Events as trigger. For example, if you need to create a job every hour, it can be done by setting cron setting like cron(10 * * * ? *).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages