Skip to content

riinr/nim-script-lambda

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nim Script for AWS Lambda

A custom runtime for AWS Lambda to execute functions in Nim Script

Getting Started

Save as index.nims:

import json

proc handler* = async(event, context): JsonNode {.async.} =
  %* "Hi from Nims on Lambda!"

Then bundle up into a zipfile – this is your function bundle:

zip -yr lambda.zip index.nims

Create a new Lambda function and choose the custom runtime option.

Create lambda

Select your lambda.zip as the "Function code" and make the handler "index.handler".

Function code

Then click on Layers and choose "Add a layer"

Original version

lambci/node-custom-lambda

About

A custom runtime for AWS Lambda to execute functions in Nim Script

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 44.9%
  • C 21.7%
  • JavaScript 15.7%
  • Dockerfile 11.1%
  • Nim 6.6%