Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

You have to install AWS command line tools at first. then off you go.

###1. build

lein uberjar

###2. create and upload

# use this for the first time.
aws lambda create-function \
  --function-name clj-almiqi \
  --handler almiqi.core::handler \
  --runtime java8 \
  --memory 512 \
  --timeout 10 \
  --role arn:aws:iam::your-account-id:role/lambda_basic_execution \
  --zip-file fileb://./target/uberjar/almiqi-0.1.0-SNAPSHOT-standalone.jar

# use this after updating and rebuilding uberjar.
aws lambda update-function-code \
  --function-name clj-almiqi \
  --zip-file fileb://./target/uberjar/almiqi-0.1.0-SNAPSHOT-standalone.jar

###3. invoke your thing.

aws lambda invoke \
     --function-name clj-almiqi \
     --invocation-type RequestResponse \
     --payload '"aoeuaeo"' outfile.txt

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages