Tutorial on building a Swift REST API to perform CRUD operations for Todo Items, learn how to persist data to AWS DynamoDB using AWS Swift SDK, handle events using Swift AWS Lambda Runtime library, and deploy to AWS Lambda using Serverless framework.
#swift #serverless #api #awslambda #awsdynamodb #crud #backend #aws
- Completed Project GitHub Repository | Backend + iOS Client Source Code:
https://github.com/alfianlosari/Swift...
Timeline:
00:00 Introduction & Final App Demo
02:50 AWS Lambda Background
05:38 Project Setup & Dependencies
09:20 Swift AWS Lambda Runtime Background
11:15 Todo Models, APIError, Utils Date Formatter, DynamoDB Extension helper
16:38 Todo Service for interfacing with AWS DynamoDB SDK
22:31 TodoLambdaHandler Setup and Initialization
28:00 Handler Operation enum & Helper Extension for API Gateway Request & Response
34:00 Event Handler for CRUD requests
41:55 Building and Packaging Swift Binary to Lambda Archive
46:38 Provisioning & Deployment using Serverless Framework
54:46 Testing the API Endpoints using PAW HTTP / Postman
- AWS Lambda Website:
https://aws.amazon.com/lambda/
- AWS DynamoDB Website:
https://aws.amazon.com/dynamodb/
- Docker Desktop Download Link:
https://www.docker.com/products/docke...
- Swift Server AWS Lambda Runtime GitHub:
https://github.com/swift-server/swift...
- Apple SwiftNIO GitHub:
https://github.com/apple/swift-nio
- Swift AWS SDK GitHub:
https://github.com/swift-aws/aws-sdk-...
- Fabian's Fett Blog - Swift on Amazon Linux 2
https://fabianfett.de/amazonlinux-swift
- NodeJS Download:
https://nodejs.org/en/download/
- Serverless Framework Website:
https://www.serverless.com
Social Media:
Website: https://alfianlosari.com
GitHub: https://github.com/alfianlosari
Twitter: / alfianlosari
LinkedIn: / alfianlosari
Thank you for watching!
Subscribe at: / @xca