Scaleway Serverless Examples

December 29, 2025 ยท View on GitHub

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

Useful Links:

Table of Contents:

Examples

๐Ÿš€ Functions

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

๐Ÿ“ฆ Containers

ExampleLanguageDeployment
Container Bash Script
A Bash script runnning on a schedule using serverless containers.
BashServerless Framework
Function Handler Java
A Java function handler deployed on CaaS.
JavaServerless Framework
NGINX CORS Private
An NGINX proxy to allow CORS requests to a private container.
Python FlaskTerraform
NGINX hello world
A minimal example running the base NGINX image in a serverless container.
N/AServerless Framework
Python hello world
A minimal example running a Flask HTTP server in a serverless container.
PythonServerless Framework
Python S3 upload
A Python + Flask HTTP server that receives file uploads and writes them to S3.
PythonTerraform
Terraform NGINX hello world
A minimal example running the base NGINX image in a serverless container deployed with Terraform.
N/ATerraform
Triggers with Terraform
Configuring two SQS triggers, used to trigger two containers, one public, one private.
N/ATerraform
gRPC HTTP2 in Go
A Go gRPC Container using http2
Go/ProtobufCLI
Rust hello world
A simple Rust hello world Container
RustCLI
.NET C#
A .NET C# Container hello world
C# .NETCLI
Ruby Hello World
A simple Ruby Hello world Container
RubyCLI
Deploy Memos app
A journaling application with its database deployed with Terraform
TerraformTerraform
Metabase on VPC
A Metabase instance running in a private network with a PostgreSQL database.
N/ATerraform
MongoDBยฎ on VPC
A MongoDBยฎ instance running in a private network with a sample application connecting to it.
TypeScript on DenoTerraform

โš™๏ธ Jobs

ExampleLanguageDeployment
Serverless Jobs Hello World
An example of building a container image and running it as a Serverless Job using Terraform.
N/ATerraform-Console
Serverless MLOps
An example of running a Serverless Machine Leaning workflow.
PythonTerraform-Console-CLI
Auto Snapshot Instances
Use Serverless Jobs to create snapshots of your instances
GoConsole
Instance Snapshot Cleaner
Use Serverless Jobs to clean old instances snapshots
GoConsole
Registry Tag Cleaner
Use Serverless Jobs to keep a desired amount of tags for each image
GoConsole
Registry Empty Image Cleaner
Use Serverless Jobs to clean container registry empty namespaces and images
GoConsole
Instance snapshots to S3
Use Serverless Jobs to move Instances snapshots to S3 Object Storage
GoConsole
Block snapshots to S3
Use Serverless Jobs to move Block Storage snapshots to S3 Object Storage
GoConsole

๐Ÿ’ฌ Messaging and Queueing

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

๐Ÿ’œ Projects

ExampleServicesLanguageDeployment
Kong API Gateway
Deploying a Kong Gateway on containers to provide routing to functions.
CaaS & FaaSPythonServerless Framework
Serverless Gateway
Our serverless gateway for functions and containers.
API GatewayPythonPython API Framework
Monitoring Glaciers
A project to monitor glaciers and the impact of global warming.
S3 & RDBGolangServerless Framework
Serverless NextJS app
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!