Skip to content

Commit a3ae583

Browse files
review
1 parent a033097 commit a3ae583

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

tutorials/snapshot-instances-jobs/index.mdx

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,62 +13,61 @@ dates:
1313
validation: 2025-12-03
1414
posted: 2024-06-19
1515
---
16-
1716
[Scaleway Serverless Jobs](/serverless-jobs/quickstart/) allows you to create and automate recurring tasks. This tutorial will guide you through the process of creating snapshots of a [Scaleway Instance](/instances/quickstart/) on a recurring schedule using a Serverless Job.
1817

19-
Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not need autoscaling or exposure via a web server. Refer to the [differences between jobs, containers and functions](/serverless-jobs/reference-content/difference-jobs-functions-containers/) for more information.
18+
Serverless Jobs are perfectly adapted for these autonomous tasks, as we do not need autoscaling or exposure via a web server. Refer to the [differences between jobs, containers, and functions](/serverless-jobs/reference-content/difference-jobs-functions-containers/) for more information.
2019

2120
<Macro id="requirements" />
2221

23-
- A Scaleway account logged into the [console](https://console.scaleway.com)
24-
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
25-
- Created an [Instance](/instances/how-to/create-an-instance/)
22+
- A Scaleway account logged into the [console](https://console.scaleway.com).
23+
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization.
24+
- Created an [Instance](/instances/how-to/create-an-instance/).
2625

2726
## Creating the Job Definition
2827

2928
1. In the [Scaleway console](https://console.scaleway.com), click **Jobs** in the **Serverless** section of the side menu. The jobs page displays.
3029

3130
2. Click **Create job**. The job creation wizard displays.
3231

33-
3. **Container Image** select **External** and in **Image URL** set: `scaleway/cli:latest`
32+
3. For **Container Image**, select **External** and in **Image URL**, set: `scaleway/cli:latest`.
3433

3534
4. Enter a name or use the automatically generated one.
3635

3736
5. Select the region in which your job will be created.
3837

39-
6. Keep default **resources** values, as this job requires little compute capabilities.
38+
6. Keep default **resources** values, as this job requires little compute capability.
4039

41-
7. Set **cron schedule** to `0 2 * * *` and select relevant time zone to run the job every day at 2:00 a.m. Refer to the [cron schedules documentation](/serverless-jobs/reference-content/cron-schedules/) for more information.
40+
7. Set **cron schedule** to `0 2 * * *` and select the relevant time zone to run the job every day at 2:00 a.m. Refer to the [cron schedules documentation](/serverless-jobs/reference-content/cron-schedules/) for more information.
4241

4342
8. Define the following environment variables:
44-
- `SCW_ACCESS_KEY`: your API access key
45-
- `SCW_SECRET_KEY`: your API secret key
46-
- `SCW_DEFAULT_PROJECT_ID`: your Project ID
47-
- `SCW_DEFAULT_ORGANIZATION_ID`: your Organization ID
48-
- `SCW_DEFAULT_REGION`: Concerned region
43+
- `SCW_ACCESS_KEY`: your API access key.
44+
- `SCW_SECRET_KEY`: your API secret key.
45+
- `SCW_DEFAULT_PROJECT_ID`: your Project ID.
46+
- `SCW_DEFAULT_ORGANIZATION_ID`: your Organization ID.
47+
- `SCW_DEFAULT_REGION`: concerned region.
4948

50-
For more details about variables used by `cli` please refer to [cli config documentation](https://github.com/scaleway/scaleway-cli/blob/master/docs/commands/config.md).
49+
For more details about variables used by `cli`, please refer to the [cli config documentation](https://github.com/scaleway/scaleway-cli/blob/master/docs/commands/config.md).
5150

52-
9. In **Execution** tab, define desired command `/scw block snapshot create volume-id=11111111-1111-1111-1111-111111111111` (replace the ID with your desired volume ID).
51+
9. In the **Execution** tab, define the desired command: `/scw block snapshot create volume-id=11111111-1111-1111-1111-111111111111` (replace the ID with your desired volume ID).
5352

5453
10. Click **Create job**.
5554

5655
## Running the job
5756

58-
From the **Overview** tab of the Serverless job you just created, click, **Actions**, then select **Run job** from the contextual menu.
57+
From the **Overview** tab of the Serverless job you just created, click **Actions**, then select **Run job** from the contextual menu.
5958

6059
The execution appears in the **Job runs** section. You can access the logs of your job by clicking <Icon name="more" /> next to the job run ID, and selecting **See on Cockpit**.
6160

6261
## Possible improvements
6362

6463
This tutorial is a lightweight example of how to create recurring snapshots of an Instance. You can go further by:
65-
- Using it to manage all your Instances snapshots
66-
- Create backups of your storage disks
67-
- Set up an alerting system in case of unexpected behavior
64+
- Using it to manage all your Instances' snapshots.
65+
- Creating backups of your storage disks.
66+
- Setting up an alerting system in case of unexpected behavior.
6867

6968
## Additional resources
7069

71-
- [Serverless Jobs Documentation](/serverless-jobs/how-to/create-job/)
72-
- [Other methods to deploy Jobs](/serverless-jobs/reference-content/deploy-job/)
73-
- [API keys documentation](/iam/how-to/create-api-keys/)
74-
- [CRON schedule reference](/serverless-jobs/reference-content/cron-schedules/)
70+
- [Serverless Jobs Documentation](/serverless-jobs/how-to/create-job/).
71+
- [Other methods to deploy Jobs](/serverless-jobs/reference-content/deploy-job/).
72+
- [API keys documentation](/iam/how-to/create-api-keys/).
73+
- [CRON schedule reference](/serverless-jobs/reference-content/cron-schedules/).

0 commit comments

Comments
 (0)