Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(srv): add methods to deploy job MTA-4018 #2552

Merged
merged 3 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions menu/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1489,6 +1489,10 @@
{
"label": "Differences between Jobs, Functions and Containers",
"slug": "difference-jobs-functions-containers"
},
{
"label": "Methods to deploy Serverless Jobs",
"slug": "deploy-job"
}
],
"label": "Reference Content",
Expand Down
62 changes: 62 additions & 0 deletions serverless/jobs/reference-content/deploy-job.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
meta:
title: Methods to deploy Serverless Jobs
description: This page explains how to deploy a job using different tools
content:
h1: Methods to deploy Serverless Jobs
paragraph: This page explains how to deploy a job using different tools
dates:
validation: 2023-12-20
posted: 2023-12-20
---

Serverless Jobs can be deployed and managed using several tools. This page aims at helping you find the right tool for your use case.

<Message type="tip">
You can find examples using all the deployment methods shown on this page in our [Serverless Examples repository](https://github.com/scaleway/serverless-examples).
</Message>

## Scaleway console

The [Scaleway console](https://console.scaleway.com/) is the easiest way to get started.

The console allows you to easily create a job definition and track your job runs. You can also monitor your jobs using [Scaleway Cockpit](/observability/cockpit/quickstart/).

## Terraform

You can easily integrate Serverless Jobs to your infrastructure as code, via our [Terraform provider and resources](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/job_definition).

## API

The [Scaleway HTTP API](https://www.scaleway.com/en/developers/api/) lets you manage your Serverless resources via HTTP calls.

The HTTP API can be useful when integrating jobs management into your automated tasks, continuous integration, and more custom use-cases.

## CLI

The [Scaleway CLI](/developer-tools/scaleway-cli/quickstart/) is a simple command line interface that allows you to create, update, delete and list your Serverless Jobs.

Installation instructions and documentation is available in the [Scaleway CLI repository](https://github.com/scaleway/scaleway-cli).

Below is an example of using the CLI to deploy a job:

```
scw jobs definition create name=testjob cpu-limit=70 memory-limit=128 image-uri=docker.io/alpine:latest command=ls
```

## Scaleway SDKs

The Scaleway SDKs allow you to manage your resources directly using your favorite languages.

The available SDKs are:

- [Go SDK](/developer-tools/scaleway-sdk/go-sdk/)
- [JS SDK](/developer-tools/scaleway-sdk/js-sdk/)
- [Python SDK](/developer-tools/scaleway-sdk/python-sdk/)

<Message type="note">
Refer to the SDK repositories for more information:
- [Go SDK repository](https://github.com/scaleway/scaleway-sdk-go)
- [JS SDK repository](https://github.com/scaleway/scaleway-sdk-js)
- [Python SDK repository](https://github.com/scaleway/scaleway-sdk-python)
</Message>