Run Swift on Amazon Linux

I provide Swift binaries that can be installed on Amazon Linux 2. Based of these binaries I also offer Dockerimages for your convenience at DockerHub and AWS Lambda layers to run your Swift executables natively in Lambda. The layers can be downloaded from S3 or can directly be utilized in your preferred region by accessing the Swift layer's arn.

All scripts and Dockerfiles involved in building the artifacts are public on GitHub. Feel free to use them in whatever way you want. If you run into any problems, please reach out via GitHub issues.

Please note: The Lambda layer does not include a bootstrap file.

You can use the Swift Lambda Layer with my custom Swift Lambda Runtime that is available on GitHub.

Releases

Swift 5.2.1

Date: March 31, 2020
Tag: swift-5.2.1-RELEASE

Binaries for installation: Download from S3
Docker Image: fabianfett/amazonlinux-swift:5.2.1-amazonlinux2

Lambda Layer: Download from S3
Arn: arn:aws:lambda:<region>:426836788079:layer:Swift:12

Previous Releases

Date: March 25, 2020
Tag: swift-5.2-RELEASE

Binaries for installation: Download from S3
Docker Image: fabianfett/amazonlinux-swift:5.2-amazonlinux2

Lambda Layer: Download from S3
Arn: arn:aws:lambda:<region>:426836788079:layer:Swift:11

Date: March 13, 2020
Tag: swift-5.1.5-RELEASE

Binaries for installation: Download from S3
Docker Image: fabianfett/amazonlinux-swift:5.1.5-amazonlinux2

Lambda Layer: Download from S3
Arn: arn:aws:lambda:<region>:426836788079:layer:Swift:10

Date: February 16, 2020
Tag: swift-5.1.4-RELEASE

Binaries for installation: Download from S3
Docker Image: fabianfett/amazonlinux-swift:5.1.4-amazonlinux2

Lambda Layer: Download from S3
Arn: arn:aws:lambda:<region>:426836788079:layer:Swift:9

Date: December 13, 2019
Tag: swift-5.1.3-RELEASE

Binaries for installation: Download from S3
Docker Image: fabianfett/amazonlinux-swift:5.1.3-amazonlinux2

Lambda Layer: Download from S3
Arn: arn:aws:lambda:<region>:426836788079:layer:Swift:8

Date: December 6, 2019
Tag: swift-5.1.2-RELEASE

Binaries for installation: Download from S3
Docker Image: fabianfett/amazonlinux-swift:5.1.2-amazonlinux2

Lambda Layer: Download from S3
Arn: arn:aws:lambda:<region>:426836788079:layer:Swift:7

Swift Version to Lambda Layer Version

Swift Version Lambda Layer Version Arn
5.2.1 arn:aws:lambda:<region>:426836788079:layer:Swift:12
5.2 arn:aws:lambda:<region>:426836788079:layer:Swift:11
5.1.5 arn:aws:lambda:<region>:426836788079:layer:Swift:10
5.1.4 arn:aws:lambda:<region>:426836788079:layer:Swift:9
5.1.3 arn:aws:lambda:<region>:426836788079:layer:Swift:8
5.1.2 arn:aws:lambda:<region>:426836788079:layer:Swift:7

The layers are not available in: