Developer Platform von Cloudflare
Full-Stack-Apps auf Workers mit Terraform deployen
Mit dem Cloudflare Terraform Provider v5.11.0 lassen sich Workers samt statischer Assets hochladen, indem man nur das Build-Verzeichnis angibt, ohne eigene Skripte für Manifest, Upload und Änderungserkennung.
You can now upload Workers with static assets (like HTML, CSS, JavaScript, images) with the Cloudflare Terraform provider v5.11.0 ↗︎, making it even easier to deploy and manage full-stack apps with IaC.
Previously, you couldn't use Terraform to upload static assets without writing custom scripts to handle generating an asset manifest, calling the Cloudflare API to upload assets in chunks, and handling change detection.
Now, you simply define the directory where your assets are built, and we handle the rest. Check out the examples for what this looks like in Terraform configuration.
You can get started today with the Cloudflare Terraform provider (v5.11.0) ↗︎, using either the existing cloudflare_workers_script resource ↗︎, or the beta cloudflare_worker_version resource ↗︎.
Examples
…