GithubHelp home page GithubHelp logo

swift-server-community / aws-lambda-swift-sam-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 0.0 250 KB

A collection of curated project template to get started with AWS Lambda function written in Swift

License: Apache License 2.0

Shell 7.73% Python 13.84% Dockerfile 9.26% Makefile 17.12% Swift 52.05%

aws-lambda-swift-sam-template's Introduction

Swift On AWS Lambda SAM Templates

This repository contains a collection of AWS SAM (Serverless Application Model) templates tailored specifically for Swift developers. These templates provide a starting point for building serverless applications on AWS using Swift.

Acknowledgments

These templates are based on the aws-samples/aws-sam-swift repository provided by AWS Samples.

Usage

To use these templates, you can initialize a new SAM project directly from this repository using the sam init command with the -l flag pointing to this GitHub repository:

sam init -l gh:swift-server-community/aws-lambda-swift-sam-template

This command will prompt you to choose one of the available templates and set up a new SAM project based on your selection.

Each template contains its README with detailed instructions on how to use it, along with additional information on building, deploying, testing, and deleting the application.

Available Templates

  • API to Lambda: Template for creating a Swift-based API using AWS Lambda and API Gateway.
  • SQS to Lambda: Template for processing messages from an SQS queue using a Swift-based Lambda function.
  • S3 to Lambda: Template for processing S3 events with a Swift-based Lambda function.
  • Scheduler to Lambda: Template for scheduling Swift-based Lambda functions to run at specified intervals.

Requirements

aws-lambda-swift-sam-template's People

Contributors

marwanekoutar avatar sebsto avatar

Watchers

Konrad `ktoso` Malawski avatar tomer doron avatar  avatar Guido Soranzio avatar Adam Fowler avatar Tim Condon avatar

aws-lambda-swift-sam-template's Issues

Simplify build by using the standard Amazon Linux 2 / Swift docker images

The change to include openssl-devel landed in the Amazon Linux 2 Swift container image build by Apple thanks to swiftlang/swift-docker#371.

It's now time to update the Makefile in each template to simplify and remove the need to build a custom container.

I think just two changes are required (in each template)

  1. change the value of DOCKER_IMAGE to swift:5.10-amazonlinux2

    I assume we only support the latest version of Swift, no more.

  2. Delete this line

    docker inspect $(DOCKER_IMAGE) >/dev/null 2>&1 || docker build -t $(DOCKER_IMAGE) .; \

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.