© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•9mo ago•
1 reply
Bas

Anyone got a worker deployed with pulumi?

The hello world example from here:

https://developers.cloudflare.com/pulumi/tutorial/hello-world/

Gets me an error:

Bad Request {
"result": null,
"success": false,
"errors": [
{
"code": 10021,
"message": "Uncaught SyntaxError: Unexpected token 'export'\n at worker.js:2\n"
}
],
"messages": []
}


Seems there was a deprecation of “WorkerScript” and the documentation is not updated to “WorkersScript” (with the “s”)
Cloudflare Docs
Deploy a Worker
In this tutorial, you will follow step-by-step instructions to deploy a Hello World application using Cloudflare Workers and Pulumi infrastructure as code (IaC) to familiarize yourself with the resource management lifecycle. In particular, you will create a Worker, a Route, and a DNS Record to access the application before cleaning up all the re...
Deploy a Worker
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Anyone managed to deploy a Python worker using Pulumi?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
9mo ago
Auto Setup Tail Worker with Pulumi for Sentry
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Worker deployed but unreachable?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
6mo ago
Are frameworks deployed as a single worker?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
9mo ago