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_widget with 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).
  • modenon-interactive, invisible, or managed.

Optional

  • clearanceLevel, botFightMode, ephemeralId, offlabel (Enterprise), region (world/china, immutable).

Stack Outputs

OutputDescription
sitekeyPublic site key
secretSecret key for /siteverify (sensitive)
created_onCreation timestamp
modified_onLast-modified timestamp
  • 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...
Read next article