Deploy

Deploy

Certified

Deploy a Cloudflare Worker script

yaml
type: io.kestra.plugin.cloudflare.workers.scripts.Deploy
yaml
id: deploy_worker
namespace: company.team

tasks:
  - id: deploy
    type: io.kestra.plugin.cloudflare.workers.scripts.Deploy
    apiToken: "{{ secret('CLOUDFLARE_API_TOKEN') }}"
    accountId: "{{ secret('CLOUDFLARE_ACCOUNT_ID') }}"
    scriptName: "hello-worker"
    compatibilityDate: "2025-03-14"
    script: |
      export default {
        async fetch(request) {
          return new Response("hello from kestra");
        }
      };
Properties
Defaulthttps://api.cloudflare.com/client/v4
SubTypeobject
SubTypestring
DefaultMODULE
Possible Values
MODULESERVICE_WORKER
Definitions
allowFailedbooleanstring
Defaultfalse
allowedResponseCodesarray
SubTypeinteger
auth
type*Requiredobject
passwordstring
usernamestring
type*Requiredobject
tokenstring
type*Requiredobject
passwordstring
usernamestring
basicAuthPasswordDeprecatedstring
basicAuthUserDeprecatedstring
connectTimeoutDeprecatedstring
Formatduration
connectionPoolIdleTimeoutDeprecatedstring
Formatduration
defaultCharsetstring
DefaultUTF-8
followRedirectsbooleanstring
Defaulttrue
logLevelDeprecatedstring
Possible Values
ALLTRACEDEBUGINFOWARNERROROFFNOT_SPECIFIED
logsarray
SubTypestring
Possible Values
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODY
maxContentLengthDeprecatedinteger
proxy
addressstring
passwordstring
portintegerstring
typestring
DefaultDIRECT
Possible Values
DIRECTHTTPSOCKS
usernamestring
proxyAddressDeprecatedstring
proxyPasswordDeprecatedstring
proxyPortDeprecatedinteger
proxyTypeDeprecatedstring
Possible Values
DIRECTHTTPSOCKS
proxyUsernameDeprecatedstring
readIdleTimeoutDeprecatedstring
Formatduration
readTimeoutDeprecatedstring
Formatduration
ssl
insecureTrustAllCertificatesbooleanstring
timeout
connectTimeoutstring
readIdleTimeoutstring
DefaultPT5M
SubTypestring