Serverless function to snapshot Disk and export the snapshot to S3.
- Install Serverless Framework using the official documentation
- Clone this repository
- Export the required Environment Variables (see below)
sls deploy
This program read your env variables and expect to find the following variables:
Variable Name | Mandatory | Description |
---|---|---|
SCW_ACCESS_KEY | yes | Your Scaleway access key |
SCW_SECRET_KEY | yes | Your Scaleway secret key |
ORGANIZATION_ID | yes | Your organization ID |
PROJECT_ID | yes | Your project ID |
DEFAULT_REGION | yes | The default region to use. Values are fr-par, nl-ams, pl-waw |
DEFAULT_AZ | yes | The default Az to use |
DISK_ID | yes | ID of the disk to snapshot |
SNAPSHOT_NUMBER | yes | Number of snapshots to keep |
EXPORT_TO_S3 | yes | Do your want to export the snapshot to S3? Value is true/false |
BUCKET_NAME | no | Name of the bucket wwhere you want to store your snapshot |
For more informations on Scaleway Zones and Region, please refer to: Scaleway Regions