├── .gitignore ├── Readme.md ├── build.sbt ├── project ├── build.properties ├── plugins.sbt └── project │ └── Build.scala └── src └── main └── scala └── example.scala /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | Example project for sbt-aws-lambda 2 | 3 | https://github.com/gilt/sbt-aws-lambda 4 | -------------------------------------------------------------------------------- /build.sbt: -------------------------------------------------------------------------------- 1 | enablePlugins(AwsLambdaPlugin) 2 | 3 | lambdaHandlers := Seq( 4 | "function1" -> "org.cvogt.Lambda::helloWorld" 5 | ) 6 | 7 | // or, instead of the above, for just one function/handler 8 | // 9 | // lambdaName := Some("function1") 10 | // 11 | // handlerName := Some("com.gilt.example.Lambda::handleRequest1") 12 | 13 | s3Bucket := Some("aws-lambda-jars") 14 | 15 | awsLambdaMemory := Some(192) 16 | 17 | awsLambdaTimeout := Some(30) 18 | 19 | roleArn := Some("arn:aws:iam::040110051033:role/lambda_basic_execution") 20 | -------------------------------------------------------------------------------- /project/build.properties: -------------------------------------------------------------------------------- 1 | sbt.version=0.13.11 2 | -------------------------------------------------------------------------------- /project/plugins.sbt: -------------------------------------------------------------------------------- 1 | addSbtPlugin("com.gilt.sbt" % "sbt-aws-lambda" % "0.3.0") 2 | -------------------------------------------------------------------------------- /project/project/Build.scala: -------------------------------------------------------------------------------- 1 | import sbt._ 2 | import Keys._ 3 | object BuildBuild extends Build{ 4 | override lazy val settings = super.settings ++ Seq( 5 | scalacOptions ++= Seq( 6 | "-feature", "-deprecation", "-unchecked" 7 | ) 8 | ) 9 | } 10 | -------------------------------------------------------------------------------- /src/main/scala/example.scala: -------------------------------------------------------------------------------- 1 | package org.cvogt 2 | object Lambda{ 3 | def helloWorld = "sdfg" 4 | } --------------------------------------------------------------------------------