vapor-community / vapor-aws-lambda-runtime

Run your Vapor api server on AWS Lambda using the official Swift Server runtime.
Apache License 2.0
104 stars 10 forks source link

Updated the repo to work with the application load balancer. #17

Open proggeramlug opened 3 years ago

proggeramlug commented 3 years ago

This includes everything needed to run Vapor apps through Lambda. I've left it as it is working for me now and it's open for discussion.

Some things, like config and the exact branches (pending merging of the swift-lambda-runtime) need to be adjusted but this way people can comment, suggest and improve things already. :)

codecov[bot] commented 3 years ago

Codecov Report

Merging #17 (949dd64) into main (93cec68) will increase coverage by 0.15%. The diff coverage is 17.39%.

:exclamation: Current head 949dd64 differs from pull request most recent head 9e50652. Consider uploading reports for the commit 9e50652 to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   17.07%   17.22%   +0.15%     
==========================================
  Files           3        4       +1     
  Lines         205      296      +91     
==========================================
+ Hits           35       51      +16     
- Misses        170      245      +75     
Impacted Files Coverage Δ
Sources/VaporAWSLambdaRuntime/LambdaServer.swift 0.00% <0.00%> (ø)
Sources/VaporAWSLambdaRuntime/ALB.swift 17.97% <17.97%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 93cec68...9e50652. Read the comment docs.

Jonathan-Mckenzie commented 3 years ago

Bummer this hasn't been merged into a 0.7.0 yet... We're just going to pull skelpo's vapor-aws-lambda-runtime instead...