Skip to content

Commit

Permalink
chore-bumpe-runtime-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bemilie committed Jul 8, 2024
1 parent 4eecda3 commit 44cbbc0
Show file tree
Hide file tree
Showing 21 changed files with 3,661 additions and 43 deletions.
26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Table of Contents:
- [Examples](#examples)
- [🚀 Functions](#-functions)
- [📦 Containers](#-containers)
- [⚙️ Jobs](#-jobs)
- [⚙️ Jobs](#-jobs)
- [💬 Messaging and Queueing](#-messaging-and-queueing)
- [💜 Projects](#-projects)
- [Contributing](#contributing)
Expand All @@ -30,16 +30,16 @@ Table of Contents:
<!-- markdownlint-disable MD033 -->

| Example | Runtime | Deployment |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| --------- | ---------------------- |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|------------------------|
| **[Badge PHP](functions/badge-php/README.md)** <br/> A PHP function to generate repository badges. | php82 | [Serverless Framework] |
| **[CORS Go](functions/cors-go/README.md)** <br/> A Go function which allows CORS requests. | go119 | [Serverless Framework] |
| **[CORS Go](functions/cors-go/README.md)** <br/> A Go function which allows CORS requests. | go122 | [Serverless Framework] |
| **[CORS Node](functions/cors-node/README.md)** <br/> A Node function which allows CORS requests. | node18 | [Serverless Framework] |
| **[CORS Python](functions/cors-python/README.md)** <br/> A Python function which allows CORS requests. | python310 | [Serverless Framework] |
| **[CORS Rust](functions/cors-rust/README.md)** <br/> A Rust function which allows CORS requests. | rust165 | [Serverless Framework] |
| **[Go Hello World](functions/go-hello-world/README.md)** <br/> A simple "hello world" example for Go | go118 | [Serverless Framework] |
| **[Go SQS Publish](functions/go-mnq-sqs-publish/README.md)** <br/> A Go function to publish messages to SQS. | go118 | [Serverless Framework] |
| **[CORS Rust](functions/cors-rust/README.md)** <br/> A Rust function which allows CORS requests. | rust179 | [Serverless Framework] |
| **[Go Hello World](functions/go-hello-world/README.md)** <br/> A simple "hello world" example for Go | go121 | [Serverless Framework] |
| **[Go SQS Publish](functions/go-mnq-sqs-publish/README.md)** <br/> A Go function to publish messages to SQS. | go121 | [Serverless Framework] |
| **[Go MultiPart Upload to S3](functions/go-upload-file-s3-multipart)** <br/> A function to upload file from form-data to S3. | go120 | [Serverless Framework] |
| **[Image Transform](functions/image-transform-node/README.md)** <br/> A function that resizes images from an S3 bucket. | node16 | [Serverless Framework] |
| **[Image Transform](functions/image-transform-node/README.md)** <br/> A function that resizes images from an S3 bucket. | node22 | [Serverless Framework] |
| **[Image Transform with triggers](functions/trigger-image-transform-node/README.md)** <br/> A function that resizes images from an S3 bucket and use SQS triggers to smooth traffic. | node20 | [Serverless Framework] |
| **[Node MultiPart Upload to S3](functions/node-upload-file-s3-multipart/README.md)** <br/> A function to upload file from form-data to S3. | node19 | [Serverless Framework] |
| **[PHP write to S3](functions/php-s3/README.md)** <br/> A PHP function that connects to, and writes to an S3 bucket. | php82 | [Terraform] |
Expand All @@ -51,7 +51,7 @@ Table of Contents:
| **[Python SQS Trigger Async Worker](functions/python-sqs-trigger-async-worker/README.md)** <br/> 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)** <br/> Send Transactional Emails from a serverless function. | python311 | [Terraform] |
| **[Redis TLS](functions/redis-tls/README.md)** <br/> How to connect a function to a Scaleway Redis cluster with TLS enabled. | python310 | [Terraform] |
| **[Rust MNIST](functions/rust-mnist/README.md)** <br/> A Rust function to recognize hand-written digits with a simple neural network. | rust165 | [Serverless Framework] |
| **[Rust MNIST](functions/rust-mnist/README.md)** <br/> A Rust function to recognize hand-written digits with a simple neural network. | rust179 | [Serverless Framework] |
| **[PostgreSQL Python](functions/postgre-sql-python/README.md)** <br/> A Python function to perform a query on a PostgreSQL managed database. | python310 | [Serverless Framework] |
| **[Terraform Python](functions/terraform-python-example/README.md)** <br/> A Python function deployed with Terraform. | python310 | [Terraform] |
| **[Triggers Getting Started](functions/triggers-getting-started/README.md)** <br/> Simple SQS trigger example for all runtimes. | all | [Terraform] |
Expand All @@ -64,7 +64,7 @@ Table of Contents:
### 📦 Containers

| Example | Language | Deployment |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ---------------------- |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------|------------------------|
| **[Container Bash Script](containers/bash-scheduled-job/README.md)** <br/> A Bash script runnning on a schedule using serverless containers. | Bash | [Serverless Framework] |
| **[Function Handler Java](containers/function-handler-java/README.md)** <br/> A Java function handler deployed on CaaS. | Java | [Serverless Framework] |
| **[NGINX CORS Private](containers/nginx-cors-private-python/README.md)** <br/> An NGINX proxy to allow CORS requests to a private container. | Python Flask | [Terraform] |
Expand All @@ -78,28 +78,26 @@ Table of Contents:
### ⚙️ Jobs

| Example | Language | Deployment |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | --------------------------- |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|-----------------------------|
| **[Serverless Jobs Hello World](jobs/terraform-hello-world/README.md)** <br/> An example of building a container image and running it as a Serverless Job using Terraform. | N/A | [Terraform]-[Console] |
| **[Serverless MLOps](jobs/ml-ops/README.md)** <br/> An example of running a Serverless Machine Leaning workflow. | Python | [Terraform]-[Console]-[CLI] |
| **[Auto Snapshot Instances](jobs/instances-snapshot/README.md)** <br/> Use Serverless Jobs to create snapshots of your instances | Go | [Console] |

### 💬 Messaging and Queueing

| Example | Services | Language | Deployment |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------- | -------- | ----------- |
|--------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|----------|-------------|
| **[Manage large message](mnq/large-messages/README.md)** <br/> An example of infrastructure to manage large messages. | PaaS & S3 | Python | [Terraform] |
| **[Serverless scraping](mnq/serverless-scraping/README.md)** <br/> An example of infrastructure to scrape the hackernews website. | PaaS & RDB | Python | [Terraform] |
| **[SNS Instances Notification System](mnq/sns-instances-notification-system/README.md)** <br/> An example of infrastructure to use SNS with Instances. | PaaS & Instances | Golang | [Terraform] |

### 💜 Projects

| Example | Services | Language | Deployment |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------- | -------- | ---------------------- |
|-------------------------------------------------------------------------------------------------------------------------------------------|-------------|----------|------------------------|
| **[Kong API Gateway](projects/kong-api-gateway/README.md)** <br/> Deploying a Kong Gateway on containers to provide routing to functions. | CaaS & FaaS | Python | [Serverless Framework] |
| **[Serverless Gateway](https://github.com/scaleway/serverless-gateway)** <br/> Our serverless gateway for functions and containers. | API Gateway | Python | [Python API Framework] |
| **[Monitoring Glaciers](projects/blogpost-glacier/README.md)** <br/> A project to monitor glaciers and the impact of global warming. | S3 & RDB | Golang | [Serverless Framework] |
| **[Manage large message](projects/large-messages/README.md)** <br/> An example of infrastructure to manage large messages. | PaaS & S3 | Python | [Terraform] |
| **[Serverless scraping](projects/serverless-scraping/README.md)** <br/> An example of infrastructure to scrape the hackernews website. | PaaS & RDB | Python | [Terraform] |
| **[Serverless NextJS app](projects/tutorial-sdb-nextjs-terraform/README.md)** <br/> A serverless Next.js blog with a Serverless Database. | PaaS & SDB | JS | [Terraform] - [CLI] |

[Serverless Framework]: https://github.com/scaleway/serverless-scaleway-functions
Expand Down
2 changes: 1 addition & 1 deletion functions/cors-go/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ service: cors-go
configValidationMode: off
provider:
name: scaleway
runtime: go119
runtime: go122

plugins:
- serverless-scaleway-functions
Expand Down
3 changes: 2 additions & 1 deletion functions/cors-rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
hyper = { version = "0.14", features = ["http1"] }
axum = "0.7.5"
http = "1.1.0"
2 changes: 1 addition & 1 deletion functions/cors-rust/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ service: cors-rust
configValidationMode: off
provider:
name: scaleway
runtime: rust165
runtime: rust179

plugins:
- serverless-scaleway-functions
Expand Down
3 changes: 2 additions & 1 deletion functions/cors-rust/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use hyper::{http::response, Body, Request, Response, StatusCode};
use axum::{body::Body, extract::Request, response::Response};
use http::StatusCode;

// See: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#the_http_response_headers
pub fn with_permissive_cors(r: response::Builder) -> response::Builder {
Expand Down
2 changes: 1 addition & 1 deletion functions/go-mnq-sqs-publish/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func init() {

sqsSession := session.Must(session.NewSession(&aws.Config{
Region: aws.String("fr-par"),
Endpoint: aws.String("http://sqs-sns.mnq.fr-par.scw.cloud"),
Endpoint: aws.String("https://sqs.mnq.fr-par.scw.cloud"),
Credentials: credentials.NewStaticCredentials(accessKey, secretKey, ""),
}))

Expand Down
Loading

0 comments on commit 44cbbc0

Please sign in to comment.