Skip to content

Commit

Permalink
Automated deployment of Java lambda-selenium demo
Browse files Browse the repository at this point in the history
  • Loading branch information
wesmcouch committed May 16, 2018
1 parent 4d51ce3 commit 9b407e1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ build/

# Gradle #
.gradle/

# Serverless #
.serverless/
2 changes: 1 addition & 1 deletion lambda-selenium-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ shadowJar {
}

task deploy(type: Exec) {
commandLine 'sh', './build-deploy.sh'
commandLine 'sls', 'deploy'
}
19 changes: 19 additions & 0 deletions lambda-selenium-java/serverless.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# serverless.yml
service: lambda-selenium

package:
artifact: build/libs/lambda-selenium-all.jar

provider:
name: aws
stage: ${opt:stage, 'dev'}
runtime: java8
memorySize: 3008
timeout: 300
versionFunctions: false

functions:
'lambda-selenium-demo':
handler: 'com.blackboard.testing.lambda.LambdaTestHandler::handleRequest'
name: lambda-selenium-function
description: Lambda Selenium Demo Tests

0 comments on commit 9b407e1

Please sign in to comment.