Cloudflare Turnstile Widget
Provision a Cloudflare Turnstile widget — a privacy-preserving CAPTCHA alternative — and expose its site key and (sensitive) secret key.
What Gets Created
- A
cloudflare_turnstile_widgetwith a public site key and a secret key.
Prerequisites
- A Cloudflare account ID.
Configuration Reference
Required
accountId— Cloudflare account ID.name— human-readable widget name.domains— domains the widget may run on (≥1).mode—non-interactive,invisible, ormanaged.
Optional
clearanceLevel,botFightMode,ephemeralId,offlabel(Enterprise),region(world/china, immutable).
Stack Outputs
| Output | Description |
|---|---|
sitekey | Public site key |
secret | Secret key for /siteverify (sensitive) |
created_on | Creation timestamp |
modified_on | Last-modified timestamp |
Related Components
- CloudflareWorker
Next article
Cloudflare Worker
Cloudflare Worker Deploy a Cloudflare Worker — serverless code that runs at the edge — together with its resource bindings, routing, schedules, and runtime settings. What Gets Created A cloudflareworkersscript (the Worker), with all of its bindings and — when set — its uploaded static assets (Workers Static Assets). Optionally: a cloudflareworkersscriptsubdomain (workers.dev), one cloudflareworkerscustomdomain per custom domain, one cloudflareworkersroute per route, and a...