Skip to content

Example projects and patterns for use with Scaleway's serverless products

Notifications You must be signed in to change notification settings

scaleway/serverless-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

79 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

Example Runtime Deployment
Badge PHP
A PHP function to generate repository badges.
php82 Serverless Framework
CORS Go
A Go function which allows CORS requests.
go122 Serverless Framework
CORS Node
A Node function which allows CORS requests.
node18 Serverless Framework
CORS Python
A Python function which allows CORS requests.
python310 Serverless Framework
CORS Rust
A Rust function which allows CORS requests.
rust179 Serverless Framework
Go Hello World
A simple "hello world" example for Go
go121 Serverless Framework
Go SQS Publish
A Go function to publish messages to SQS.
go121 Serverless Framework
Go MultiPart Upload to S3
A function to upload file from form-data to S3.
go120 Serverless Framework
Image Transform
A function that resizes images from an S3 bucket.
node22 Serverless Framework
Image Transform with triggers
A function that resizes images from an S3 bucket and use SQS triggers to smooth traffic.
node20 Serverless Framework
Node Terraform
A simple example of deploying a Node Serverless function using Terraform.
node22 Terraform
Node MultiPart Upload to S3
A function to upload file from form-data to S3.
node19 Serverless Framework
PHP write to S3
A PHP function that connects to, and writes to an S3 bucket.
php82 Terraform
PostgeSQL Node
A Node function to connect and interact with PostgreSQL database.
node18 Serverless Framework
Python ChatBot
A chatbot example with ChatterBot.
python310 Serverless Framework
Python Dependencies
Example showing how to use Python requirements with Serverless Framework.
python310 Serverless Framework
Python MultiPart Upload to S3
A function to upload file from form-data to S3.
python311 Python API Framework
Python SQS Trigger Hello World
Trigger a function by sending a message to a SQS queue.
python311 Terraform
Python SQS Trigger Async Worker
Use SQS queues and function triggers to scheule an async task from another function.
python311 Terraform
Python TEM SMTP Server
Send Transactional Emails from a serverless function.
python311 Terraform
Redis TLS
How to connect a function to a Scaleway Redis cluster with TLS enabled.
python310 Terraform
Rust MNIST
A Rust function to recognize hand-written digits with a simple neural network.
rust179 Serverless Framework
PostgreSQL Python
A Python function to perform a query on a PostgreSQL managed database.
python310 Serverless Framework
Terraform Python
A Python function deployed with Terraform.
python310 Terraform
Triggers Getting Started
Simple SQS trigger example for all runtimes.
all Terraform
Triggers NATS
Simple NATS trigger example using Terraform.
all Terraform
Typescript with Node runtime
A Typescript function using Node runtime.
node18 Serverless Framework
Serverless Gateway Python Example
A Python serverless API using Serverless Gateway.
python310 Python API Framework
Go and Transactional Email
A Go function that send emails using Scaleway SDK.
go121 Serverless Framework
Rotate RDB Credentials
A Go function that rotates RDB credentials stored in Secret Manager.
go120 Serverless Framework

πŸ“¦ Containers

Example Language Deployment
Container Bash Script
A Bash script runnning on a schedule using serverless containers.
Bash Serverless Framework
Function Handler Java
A Java function handler deployed on CaaS.
Java Serverless Framework
NGINX CORS Private
An NGINX proxy to allow CORS requests to a private container.
Python Flask Terraform
NGINX hello world
A minimal example running the base NGINX image in a serverless container.
N/A Serverless Framework
Python hello world
A minimal example running a Flask HTTP server in a serverless container.
Python Serverless Framework
Python S3 upload
A Python + Flask HTTP server that receives file uploads and writes them to S3.
Python Terraform
Terraform NGINX hello world
A minimal example running the base NGINX image in a serverless container deployed with Terraform.
N/A Terraform
Triggers with Terraform
Configuring two SQS triggers, used to trigger two containers, one public, one private.
N/A Terraform
gRPC HTTP2 in Go
A Go gRPC Container using http2
Go/Protobuf CLI

βš™οΈ Jobs

Example Language Deployment
Serverless Jobs Hello World
An example of building a container image and running it as a Serverless Job using Terraform.
N/A Terraform-Console
Serverless MLOps
An example of running a Serverless Machine Leaning workflow.
Python Terraform-Console-CLI
Auto Snapshot Instances
Use Serverless Jobs to create snapshots of your instances
Go Console

πŸ’¬ Messaging and Queueing

Example Services Language Deployment
Manage large message
An example of infrastructure to manage large messages.
PaaS & S3 Python Terraform
Serverless scraping
An example of infrastructure to scrape the hackernews website.
PaaS & RDB Python Terraform
SNS Instances Notification System
An example of infrastructure to use SNS with Instances.
PaaS & Instances Golang Terraform

πŸ’œ Projects

Example Services Language Deployment
Kong API Gateway
Deploying a Kong Gateway on containers to provide routing to functions.
CaaS & FaaS Python Serverless Framework
Serverless Gateway
Our serverless gateway for functions and containers.
API Gateway Python Python API Framework
Monitoring Glaciers
A project to monitor glaciers and the impact of global warming.
S3 & RDB Golang Serverless Framework
Serverless NextJS app
A serverless Next.js blog with a Serverless Database.
PaaS & SDB JS Terraform - 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!

About

Example projects and patterns for use with Scaleway's serverless products

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published