You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36-8Lines changed: 36 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,36 @@
1
-
# Serverless Framework: Deploy on Scaleway Functions
1
+
# Scaleway Plugin for Serverless Framework
2
2
3
-
The Scaleway functions plugin for [Serverless Framework](https://serverless.com/) allows users to deploy their functions and containers to Scaleway Functions with a simple `serverless deploy`.
3
+
This is the [Scaleway Functions](https://www.scaleway.com/en/serverless-functions/) plugin for [Serverless Framework](https://serverless.com/).
4
4
5
-
Serverless Framework handles everything from creating namespaces to function/code deployment by calling APIs endpoint under the hood.
5
+
## Quick-start
6
+
7
+
0. Install the [Serverless Framework](https://www.serverless.com/framework/docs/getting-started).
8
+
1. Create a Scaleway account, and log in to the [Scaleway Console](https://console.scaleway.com/login).
9
+
2. Generate an [API key](https://www.scaleway.com/en/docs/console/my-project/how-to/generate-api-key/).
10
+
3. Set up the [Scaleway CLI](https://www.scaleway.com/en/cli/).
11
+
4. Generate and invoke your function:
12
+
13
+
```shell
14
+
# Available templates: https://github.com/scaleway/serverless-scaleway-functions/tree/master/examples
Path to your handler's **package**, for example if I have the following structure:
242
270
```yml
243
271
- src
@@ -349,7 +377,7 @@ custom:
349
377
mycontainer:
350
378
directory: my-container-directory
351
379
# port: 8080
352
-
# Environment only available in this container
380
+
# Environment only available in this container
353
381
env:
354
382
MY_VARIABLE: "my-value"
355
383
```
@@ -371,7 +399,7 @@ Here is an example of the files you should have, the `directory` containing your
371
399
└── serverless.yml
372
400
```
373
401
374
-
Scaleway's platform will automatically inject a PORT environment variable on which your server should be listening for incoming traffic. By default, this PORT is 8080. You may change the `port` in your `serverless.yml`.
402
+
Scaleway's platform will automatically inject a PORT environment variable on which your server should be listening for incoming traffic. By default, this PORT is 8080. You may change the `port` in your `serverless.yml`.
375
403
376
404
You may use the [container example](https://github.com/scaleway/serverless-scaleway-functions/tree/master/examples/container) to getting started.
0 commit comments