Skip to content

Commit

Permalink
Create the project's skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
hosamaly committed Apr 30, 2019
1 parent 5e6df7c commit 901bbd6
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DemoApp.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package demo

import scala.collection.JavaConverters._

object App {
def run(params: java.util.Map[String, String]) = {
println(s"Hello, Lambda! params = ${params.asScala.mkString(", ")}")
}
}
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Minimal scala project for AWS Lambda

- To build the project: `sbt dist`.
- Upload the zip file generated in [target/universal](target/universal/) to AWS Lambda.
- Configure the Lambda to use `demo.App::run` as the handler.

Created for [Scala Central Meetup #22](https://www.meetup.com/Scala-Central/events/259324550/).
The presentation was [recorded in video](https://www.youtube.com/watch?v=ws4TZSpQlcU).
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
enablePlugins(JavaAppPackaging)
Universal / topLevelDirectory := None
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version=1.2.8
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.3.19")

0 comments on commit 901bbd6

Please sign in to comment.