https://github.com/hummingbird-project/hummingbird-lambda
Hummingbird running inside an AWS Lambda
https://github.com/hummingbird-project/hummingbird-lambda
aws aws-lambda hummingbird hummingbird-lambda swift
Last synced: 2 months ago
JSON representation
Hummingbird running inside an AWS Lambda
- Host: GitHub
- URL: https://github.com/hummingbird-project/hummingbird-lambda
- Owner: hummingbird-project
- License: apache-2.0
- Created: 2021-02-04T10:18:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T06:21:27.000Z (over 1 year ago)
- Last Synced: 2024-05-20T01:10:23.428Z (over 1 year ago)
- Topics: aws, aws-lambda, hummingbird, hummingbird-lambda, swift
- Language: Swift
- Homepage:
- Size: 115 KB
- Stars: 21
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Hummingbird Lambda
Run Hummingbird inside an AWS Lambda
## Usage
```swift
typealias AppRequestContext = BasicLambdaRequestContext// Create router and add a single route returning "Hello" in its body
let router = Router(context: AppRequestContext.self)
router.get("hello") { _, _ in
return "Hello"
}
// create lambda using router and run
let lambda = APIGatewayV2LambdaFunction(router: router)
try await lambda.runService()
```