Skip to main content
Qovery creates it in your account with a third-party provider, using credentials you enter in the form, as a Blueprint service in one of your environments.
New to this? You don’t need to know Terraform or Kubernetes. Qovery sets up Cloudflare Workers in your account with the provider: you fill in a form, or paste the prompt below into your coding agent. The values it publishes, listed under Outputs, reach your other services as environment variables. Qovery tells you when a newer version of the Blueprint is available. Check the requirements in the Reference section before you start, and try it first in a development environment.

Create it

  1. Open the environment, then New service › Blueprint.
  2. Find Cloudflare Workers in the catalog and pick the major version.
  3. Fill in the variables. Required ones are marked; the others use their defaults.
  4. Create the service, and deploy it now or later.
You don’t add any file to your repository. Qovery creates the Blueprint from the Console or the API.

Variables and outputs

Generated from qbm.yml at EXTERNAL/cloudflare-workers/default/1.0.8, the manifest the Console form is built from.
Outputs become environment variables that other services in the environment can use. By default Qovery also creates an alias for each output, prefixed with the Blueprint’s name; see Aliases Qovery creates for outputs for the naming rules and the cases where no alias is created.
Secret variables and outputs are encrypted and masked in Qovery, but Terraform can also keep their values, and values derived from them, in its state. With the Qovery-managed state backend (the default), Qovery stores the state. If you use your own backend, protect it and keep state files out of version control.

Reference

From the Blueprint’s README. Deploys a Cloudflare Worker script (cloudflare_workers_script) with an optional route (cloudflare_workers_route), via the official cloudflare/cloudflare Terraform provider (~> 5.0).

Credentials

Authentication is a Cloudflare API token supplied as the sensitive cloudflare_api_token variable (credentials.default: env — there are no cluster credentials to reuse for a third-party provider). The token needs Workers Scripts: Edit (and Workers Routes: Edit if you set a route).

Variables

Required

Optional

Outputs

Notes

  • The default script_content uses service-worker syntax (addEventListener), so main_module is left empty. For ES-module Workers (export default { fetch }), set main_module (e.g. worker.js).
  • Provider pinned to cloudflare/cloudflare ~> 5.0 (v5 renamed the resource from cloudflare_worker_script to cloudflare_workers_script).