diff --git a/menu/navigation.json b/menu/navigation.json index 99d73e8404..f63b30cee6 100644 --- a/menu/navigation.json +++ b/menu/navigation.json @@ -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", diff --git a/serverless/jobs/reference-content/deploy-job.mdx b/serverless/jobs/reference-content/deploy-job.mdx new file mode 100644 index 0000000000..a78bb5cc9d --- /dev/null +++ b/serverless/jobs/reference-content/deploy-job.mdx @@ -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. + + + You can find examples using all the deployment methods shown on this page in our [Serverless Examples repository](https://github.com/scaleway/serverless-examples). + + +## 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/) + + + 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) +