Image description

The AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications. This page shows you how to use SAM to deploy Server-side Swift applications to AWS. Each application uses AWS Lambda Functions written in Swift. The functions use the AWS SDK for Swift and the Swift AWS Lambda Runtime.

Get the Tools

To deploy an application using SAM, you need an AWS account and the following tools on your development machine. While it may work with alternative versions, we recommend you deploy the specified minimum version.

Note: make sure you upgrade to SAM CLI version 1.103.0 or later. These templates will only work with that version of SAM or greater.

Create a Project

Once you have the tools installed, from a command prompt on your machine, use the sam init command to initialize a new project.

sam init --location gh:aws-samples/aws-sam-swift

When prompted, specify a name for your project and select the template for the type of project you want to generate. Then switch to the project’s folder.

Application specific instructions to build, deploy, and use the application are located in the README.md file of the generated project.

Project Templates

The tool supports these templates.

License

This library is licensed under the MIT-0 License. See the LICENSE file in the project code repository.