RepoScalewayScalewaypublished Nov 10, 2022seen 5d

scaleway/serverless-examples

Go

Open original ↗

Captured source

source ↗
published Nov 10, 2022seen 5dcaptured 10hhttp 200method plain

scaleway/serverless-examples

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

Language: Go

Stars: 63

Forks: 14

Open issues: 9

Created: 2022-11-10T09:10:17Z

Pushed: 2026-03-30T12:14:12Z

Default branch: main

Fork: no

Archived: no

README:

Scaleway Serverless Examples

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

Useful Links:

[slack-scaleway]: https://slack.scaleway.com/ [slack-functions]: https://scaleway-community.slack.com/app_redirect?channel=serverless-functions [slack-containers]: https://scaleway-community.slack.com/app_redirect?channel=serverless-containers

Table of Contents:

  • [Scaleway Serverless Examples](#scaleway-serverless-examples)
  • [Examples](#examples)
  • [🚀 Functions](#-functions)
  • [📦 Containers](#-containers)
  • [⚙️ Jobs](#️-jobs)
  • [💬 Messaging and Queueing](#-messaging-and-queueing)
  • [💜 Projects](#-projects)
  • [Contributing](#contributing)

Examples

🚀 Functions

| Example | Runtime | Deployment | |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|------------------------| | [Badge PHP](functions/badge-php/README.md) A PHP function to generate repository badges. | php82 | [Serverless Framework] | | [CORS Go](functions/cors-go/README.md) A Go function which allows CORS requests. | go122 | [Serverless Framework] | | [CORS Node](functions/cors-node/README.md) A Node function which allows CORS requests. | node18 | [Serverless Framework] | | [CORS Python](functions/cors-python/README.md) A Python function which allows CORS requests. | python310 | [Serverless Framework] | | [CORS Rust](functions/cors-rust/README.md) A Rust function which allows CORS requests. | rust185 | [Serverless Framework] | | [CORS Multipart Rust](functions/cors-rust-multipart/README.md) A Rust function which allows multipart requests with CORS. | rust185 | [Serverless Framework] | | [Go Hello World](functions/go-hello-world/README.md) A simple "hello world" example for Go | go121 | [Serverless Framework] | | [Go SQS Publish](functions/go-mnq-sqs-publish/README.md) A Go function to publish messages to SQS. | go121 | [Serverless Framework] | | [Go MultiPart Upload to S3](functions/go-upload-file-s3-multipart) A function to upload file from form-data to S3. | go120 | [Serverless Framework] | | [Image Transform](functions/image-transform-node/README.md) A function that resizes images from an S3 bucket. | node22 | [Serverless Framework] | | [Image Transform with triggers](functions/trigger-image-transform-node/README.md) A function that resizes images from an S3 bucket and use SQS triggers to smooth traffic. | node20 | [Serverless Framework] | | [Node Terraform](functions/node-terraform/README.md) A simple example of deploying a Node Serverless function using Terraform. | node22 | [Terraform] | | [Node MultiPart Upload to S3](functions/node-upload-file-s3-multipart/README.md) A function to upload file from form-data to S3. | node19 | [Serverless Framework] | | [PHP write to S3](functions/php-s3/README.md) A PHP function that connects to, and writes to an S3 bucket. | php82 | [Terraform] | | [PostgeSQL Node](functions/postgre-sql-node/README.md) A Node function to connect and interact with PostgreSQL database. | node18 | [Serverless Framework] | | [Python ChatBot](functions/python-dependencies/README.md) A chatbot example with ChatterBot. | python310 | [Serverless Framework] | | [Python Dependencies](functions/python-chatbot/README.md) Example showing how to use Python requirements with Serverless Framework. | python310 | [Serverless Framework] | | [Python MultiPart Upload to S3](functions/python-upload-file-s3-multipart/README.md) A function to upload file from form-data to S3. | python311 | [Python API Framework] | | [Python SQS Trigger Hello World](functions/python-sqs-trigger-hello-world/README.md) Trigger a function by sending a message to a SQS queue. | python311 | [Terraform] | | [Python SQS Trigger Async Worker](functions/python-sqs-trigger-async-worker/README.md) Use SQS queues and function triggers to scheule an async task from another function. | python311 | [Terraform] | | [Python TEM SMTP Server](functions/python-tem-smtp-server/README.md) Send Transactional Emails from a serverless function. | python311 | [Terraform] | | [Redis TLS](functions/redis-tls/README.md) How to connect a function to a Scaleway Redis cluster with TLS enabled. | python310 | [Terraform] | | [Rust MNIST](functions/rust-mnist/README.md) A Rust function to recognize hand-written digits with a simple neural network. | rust185 | [Serverless Framework] | | [PostgreSQL Python](functions/postgre-sql-python/README.md) A Python function to perform a query on a PostgreSQL managed database. | python310 | [Serverless Framework] | | [Terraform Python](functions/terraform-python-example/README.md) A Python function deployed with Terraform. | python310 | [Terraform] | | [Triggers Getting Started](functions/triggers-getting-started/README.md) Simple SQS trigger example for all runtimes. | all | [Terraform] | | [Triggers NATS](functions/triggers-nats/README.md) Simple NATS trigger example using Terraform. | all | [Terraform] | | [Typescript with Node runtime](functions/typescript-with-node/README.md) A Typescript function using Node runtime. | node18 | [Serverless Framework] | | [Serverless Gateway Python Example](functions/serverless-gateway-python/README.md) A Python serverless API using Serverless Gateway. | python310 | [Python API Framework] | | [Go and Transactional Email](functions/go-mail/README.md) A Go function that send emails using Scaleway SDK. | go121 | [Serverless Framework] | | [Rotate RDB Credentials](functions/secret-manager-rotate-secret/README.md) A Go function that rotates RDB credentials stored in Secret Manager. | go120 | [Serverless Framework] | | [Connect to Mongo DB](functions/go-mongo/) A Go example to connect to Mongo DB |…

Excerpt shown — open the source for the full document.