Skip to content

Inquiry about Swift Support in AWS Lambda

1

Dear AWS Customer Support,

I am writing to inquire about the support for Swift programming language in AWS Lambda.

I have been exploring the capabilities of AWS Lambda for my development projects, and I have come across the Swift AWS Lambda Runtime, a third-party library developed by the Swift Server Work Group (https://github.com/swift-server/swift-aws-lambda-runtime). This library enables the authoring of AWS Lambda functions using the Swift programming language. However, as it is not a native offering by AWS, I have a few concerns and questions regarding its usage.

I would like to inquire about the level of support and compatibility that AWS provides for third-party runtimes like the Swift AWS Lambda Runtime. Are there any known limitations or considerations when using such runtimes? I would appreciate any insights or recommendations you can provide in this regard.

Do you plan to support Swift as a native language in the near future?

asked 3 years ago523 views

2 Answers
2

Hi, Lambda custom runtimes allow you to use whichever runtime you want.

I personally did a project using GnuCobol as a Lambda runtime. The project is here: https://github.com/didier-durand/lambda-cobol It provides you with a full implementation of a Custom Lambda runtime

It was detailled in 2 AWS blog posts:

I hope that this helps to implement your own with Swift

EXPERT

answered 3 years ago

EXPERT

reviewed 3 years ago

  • BTW, on the level of support, AWS will not support a third-party library but will support underlying Lambda runtime as any standard AWS component in case you face issues with its features

0

Lambda custom runtimes are fully supported by AWS Lambda. The Swift Lambda runtime (to which I contributed and that I am using) is developed by Apple itself. While I agree Apple is a third-party here, it's a significant one (not a dorm room project :-) ) They are quite reactive to provide support when you file an issue on GitHub.

The big downside of using Lambda custom runtime (all of them, not only the Swift one) is that you are in charge to manage it. i.e. if when there is a new version of Swift, or a new version of the runtime library, it is your responsibility to update all the Lambda functions. That's the main difference with the Lambda managed runtime (let's say NodeJS or Python), AWS Lambda updates the runtime automatically for you.

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.