Skip to content

nivertech/aws-lambda-cljs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POC ClojureScript AWS Lambda Function

Usage

Create a Lambda function in your AWS account:

$ zip -r lambda.zip index.js node_modules out
$ lein npm install
$ aws lambda upload-function \
  --region us-west-2 \
  --function-name dns-resolver \
  --function-zip ./lambda.zip \
  --timeout 10 \
  --runtime nodejs \
  --handler handler \ 
  --mode event \
  --role arn:aws:iam::<your AWS account ID>:role/lambda_exec_role

Test the Lambda in the AWS console, with the following input:

{
  "domain": "example.com",
  "type": "A"
}

DIY

  1. lein new mies-node my-lambda
  2. cd my-lambda && lein npm install
  3. Create an index.js to export your function
  4. zip -r lambda.zip index.js node_modules out

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 85.0%
  • JavaScript 15.0%