Home

Awesome

Scaleway Serverless Examples

This is a collection of example projects and patterns for use with Scaleway's serverless products.

Useful Links:

Table of Contents:

Examples

🚀 Functions

<!-- markdownlint-disable MD033 -->
ExampleRuntimeDeployment
Badge PHP <br/> A PHP function to generate repository badges.php82Serverless Framework
CORS Go <br/> A Go function which allows CORS requests.go122Serverless Framework
CORS Node <br/> A Node function which allows CORS requests.node18Serverless Framework
CORS Python <br/> A Python function which allows CORS requests.python310Serverless Framework
CORS Rust <br/> A Rust function which allows CORS requests.rust179Serverless Framework
Go Hello World <br/> A simple "hello world" example for Gogo121Serverless Framework
Go SQS Publish <br/> A Go function to publish messages to SQS.go121Serverless Framework
Go MultiPart Upload to S3 <br/> A function to upload file from form-data to S3.go120Serverless Framework
Image Transform <br/> A function that resizes images from an S3 bucket.node22Serverless Framework
Image Transform with triggers <br/> A function that resizes images from an S3 bucket and use SQS triggers to smooth traffic.node20Serverless Framework
Node Terraform <br/> A simple example of deploying a Node Serverless function using Terraform.node22Terraform
Node MultiPart Upload to S3 <br/> A function to upload file from form-data to S3.node19Serverless Framework
PHP write to S3 <br/> A PHP function that connects to, and writes to an S3 bucket.php82Terraform
PostgeSQL Node <br/> A Node function to connect and interact with PostgreSQL database.node18Serverless Framework
Python ChatBot <br/> A chatbot example with ChatterBot.python310Serverless Framework
Python Dependencies <br/> Example showing how to use Python requirements with Serverless Framework.python310Serverless Framework
Python MultiPart Upload to S3 <br/> A function to upload file from form-data to S3.python311Python API Framework
Python SQS Trigger Hello World <br/> Trigger a function by sending a message to a SQS queue.python311Terraform
Python SQS Trigger Async Worker <br/> Use SQS queues and function triggers to scheule an async task from another function.python311Terraform
Python TEM SMTP Server <br/> Send Transactional Emails from a serverless function.python311Terraform
Redis TLS <br/> How to connect a function to a Scaleway Redis cluster with TLS enabled.python310Terraform
Rust MNIST <br/> A Rust function to recognize hand-written digits with a simple neural network.rust179Serverless Framework
PostgreSQL Python <br/> A Python function to perform a query on a PostgreSQL managed database.python310Serverless Framework
Terraform Python <br/> A Python function deployed with Terraform.python310Terraform
Triggers Getting Started <br/> Simple SQS trigger example for all runtimes.allTerraform
Triggers NATS <br/> Simple NATS trigger example using Terraform.allTerraform
Typescript with Node runtime <br/> A Typescript function using Node runtime.node18Serverless Framework
Serverless Gateway Python Example <br/> A Python serverless API using Serverless Gateway.python310Python API Framework
Go and Transactional Email <br/> A Go function that send emails using Scaleway SDK.go121Serverless Framework
Rotate RDB Credentials <br/> A Go function that rotates RDB credentials stored in Secret Manager.go120Serverless Framework

📦 Containers

ExampleLanguageDeployment
Container Bash Script <br/> A Bash script runnning on a schedule using serverless containers.BashServerless Framework
Function Handler Java <br/> A Java function handler deployed on CaaS.JavaServerless Framework
NGINX CORS Private <br/> An NGINX proxy to allow CORS requests to a private container.Python FlaskTerraform
NGINX hello world <br/> A minimal example running the base NGINX image in a serverless container.N/AServerless Framework
Python hello world <br/> A minimal example running a Flask HTTP server in a serverless container.PythonServerless Framework
Python S3 upload <br/> A Python + Flask HTTP server that receives file uploads and writes them to S3.PythonTerraform
Terraform NGINX hello world <br/> A minimal example running the base NGINX image in a serverless container deployed with Terraform.N/ATerraform
Triggers with Terraform <br/> Configuring two SQS triggers, used to trigger two containers, one public, one private.N/ATerraform
gRPC HTTP2 in Go <br/> A Go gRPC Container using http2Go/ProtobufCLI

⚙️ Jobs

ExampleLanguageDeployment
Serverless Jobs Hello World <br/> An example of building a container image and running it as a Serverless Job using Terraform.N/ATerraform-Console
Serverless MLOps <br/> An example of running a Serverless Machine Leaning workflow.PythonTerraform-Console-CLI
Auto Snapshot Instances <br/> Use Serverless Jobs to create snapshots of your instancesGoConsole

💬 Messaging and Queueing

ExampleServicesLanguageDeployment
Manage large message <br/> An example of infrastructure to manage large messages.PaaS & S3PythonTerraform
Serverless scraping <br/> An example of infrastructure to scrape the hackernews website.PaaS & RDBPythonTerraform
SNS Instances Notification System <br/> An example of infrastructure to use SNS with Instances.PaaS & InstancesGolangTerraform

💜 Projects

ExampleServicesLanguageDeployment
Kong API Gateway <br/> Deploying a Kong Gateway on containers to provide routing to functions.CaaS & FaaSPythonServerless Framework
Serverless Gateway <br/> Our serverless gateway for functions and containers.API GatewayPythonPython API Framework
Monitoring Glaciers <br/> A project to monitor glaciers and the impact of global warming.S3 & RDBGolangServerless Framework
Serverless NextJS app <br/> A serverless Next.js blog with a Serverless Database.PaaS & SDBJSTerraform - CLI

Contributing

Want to share an example with the community? 🚀

We'd love to accept your contributions. Here are the steps to provide an example:

You can also open an issue to suggest new examples or improvements to existing ones!