Skip to content

hshar7/kotlin_lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin In AWS Lambda Easy Start

Description

Following steps here will theoretically allow you to put a kotlin function into AWS Lambda.

You need an AWS account!

Steps

  1. Checkout this repo git checkout https://github.com/hshar7/kotlin-lambda
  2. Do mvn package
  3. Head over to aws lambda and click create a new lambda function
  4. Give it a name and select latest Java as runtime
  5. Make a role or select an existing role. Defaults for role is fine.
  6. Scroll down and browse press Upload to select the jar file your created under target: kotlin_lambda_starter-1.0.jar
  7. Handler name: com.hshar.WebServer
  8. You cannot test it yet!

Testing if it works

  1. Go to API Gateway in AWS
  2. Create API -> New API
  3. Give it a name and choose Edge Optimized.
  4. Actions -> Create Resource
  5. Checkbox proxy resource and click Create Resource
  6. Press on any under proxy then Test on the left side in Client
  7. Method -> GET, Path -> /hello .. then click Test
  8. Yeay!

Extended Example of this

https://github.com/hshar7/kotlin-lambda-notes-service

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages