Skip to content

Add hummingbird Lambda example #544

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Aug 5, 2025
Merged

Conversation

sebsto
Copy link
Contributor

@sebsto sebsto commented Aug 3, 2025

Add Hummingbird web framework integration example for AWS Lambda

Motivation:
Developers using the Hummingbird web framework need a clear example of how to integrate it with AWS Lambda. The existing examples focus on basic Lambda handlers, but don't demonstrate how to use popular Swift web frameworks like Hummingbird in a serverless context.

Modifications:
Added a complete Hummingbird Lambda example in Examples/Hummingbird/ including Package.swift with Hummingbird Lambda dependencies, main.swift demonstrating router setup with API Gateway V2 integration, SAM template for deployment, and comprehensive README documentation with build, deploy, and usage instructions.

Result:
Developers can now easily create AWS Lambda functions using the Hummingbird web framework, with a working example that shows router configuration, API Gateway integration, and complete deployment workflow using familiar Hummingbird syntax.

@sebsto sebsto self-assigned this Aug 3, 2025
@sebsto sebsto added the 🆕 semver/minor Adds new public API. label Aug 3, 2025
@sebsto sebsto changed the title Add hummingbirdLambda example Add hummingbird Lambda example Aug 3, 2025
@sebsto sebsto requested a review from adam-fowler August 3, 2025 15:35
@sebsto sebsto enabled auto-merge (squash) August 3, 2025 15:35
@sebsto
Copy link
Contributor Author

sebsto commented Aug 5, 2025

Hello @Joannis would you have time to review this new Hummingbird Lambda example ?

@Joannis
Copy link
Member

Joannis commented Aug 5, 2025

Will do @sebsto

Copy link
Member

@Joannis Joannis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as a basic example, I'm assuming they can find out the other tools they need for things like fetching secrets?

@sebsto sebsto merged commit a5ff8e5 into swift-server:main Aug 5, 2025
69 of 70 checks passed
@sebsto
Copy link
Contributor Author

sebsto commented Aug 5, 2025

Thank you @Joannis . There are plenty of other examples for Lambda. I haven't included an example how to fetch secrets (are you thinking about AWS Secrets Manager) ? but I can plan for that too

@sebsto sebsto deleted the sebsto/hummingbird branch August 5, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants