Skip to content

Use aws lambda v2 #354

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 2 commits into from
Jun 5, 2025
Merged

Use aws lambda v2 #354

merged 2 commits into from
Jun 5, 2025

Conversation

MahdiBM
Copy link
Collaborator

@MahdiBM MahdiBM commented Jun 1, 2025

resolves #270

@MahdiBM MahdiBM requested review from 0xTim and gwynne as code owners June 1, 2025 10:04
Comment on lines +19 to +21
struct SharedContext {
let awsClient: AWSClient
}
Copy link
Collaborator Author

@MahdiBM MahdiBM Jun 1, 2025

Choose a reason for hiding this comment

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

These SharedContexts don't get initialized multiple times across multiple lambda invocations. That's the reason.

Comment on lines +33 to +37
.package(
url: "https://github.com/swift-server/swift-aws-lambda-runtime.git",
/// Last commit on main as of this code change; V2
revision: "c7df9bcd8af279c70f991f5d53e48d73d3e6821a"
),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

update to v2

@@ -319,7 +318,7 @@
{
"identity" : "swift-openapi-async-http-client",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swift-server/swift-openapi-async-http-client.git",
"location" : "https://github.com/swift-server/swift-openapi-async-http-client",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

why the change?! we use .git in Package.swift.

@MahdiBM MahdiBM force-pushed the mmbm-aws-lambda-v2 branch from 8cb5e3c to 5c200b5 Compare June 1, 2025 12:54
@MahdiBM MahdiBM force-pushed the mmbm-aws-lambda-v2 branch from 5c200b5 to 7dd3567 Compare June 1, 2025 17:21
@MahdiBM MahdiBM enabled auto-merge (squash) June 5, 2025 17:24
@MahdiBM MahdiBM merged commit 38b039b into main Jun 5, 2025
13 checks passed
@MahdiBM MahdiBM deleted the mmbm-aws-lambda-v2 branch June 5, 2025 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to swift-aws-lambda v2
2 participants