---
title: Workers
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/terraform)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Workers

#### WorkersBetaWorkers

#### resource cloudflare\_worker

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

name: String

Name of the Worker.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20name>)

##### optional Expand Collapse

logpush?: Bool

Whether logpush is enabled for the Worker.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20logpush>)

tags?: Set\[String]

Tags associated with the Worker.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tags>)

<details>

<summary>

observability?: Attributes

Observability settings for the Worker.

</summary>

enabled?: Bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate?: Float64

The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues?: Attributes

Real-time Issues settings for the Worker.

</summary>

enabled?: Bool

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues">Link to this property</a>

<details>

<summary>

logs?: Attributes

Log settings for the Worker.

</summary>

destinations?: List\[String]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled?: Bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate?: Float64

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

invocation\_logs?: Bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20invocation_logs">Link to this property</a>

persist?: Bool

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs">Link to this property</a>

redact\_query\_string?: Bool

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces?: Attributes

Trace settings for the Worker.

</summary>

destinations?: List\[String]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled?: Bool

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate?: Float64

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist?: Bool

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20persist">Link to this property</a>

propagation\_policy?: String

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability>)

<details>

<summary>

previews\_base\_config?: Attributes

Template configuration used when creating new Previews for this Worker.

</summary>

<details>

<summary>

cache\_options?: Attributes

Cache options used when creating new Previews.

</summary>

enabled?: Bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20enabled">Link to this property</a>

cross\_version\_cache?: Bool

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20cross_version_cache">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20cache_options">Link to this property</a>

<details>

<summary>

env?: Map\[Attributes]

Bindings used when creating new Previews, keyed by binding name.

</summary>

type: String

The kind of resource that the binding provides.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20env%20%3E%20(attribute)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20env">Link to this property</a>

<details>

<summary>

limits?: Attributes

Resource limits enforced at runtime for newly created Previews.

</summary>

cpu\_ms?: Int64

The amount of CPU time this Worker can use in milliseconds.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20cpu_ms">Link to this property</a>

subrequests?: Int64

The number of subrequests this Worker can make per request.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20subrequests">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20limits">Link to this property</a>

logpush?: Bool

Whether logpush is enabled when creating new Previews.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20logpush">Link to this property</a>

<details>

<summary>

observability?: Attributes

Observability settings used when creating new Previews.

</summary>

enabled?: Bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate?: Float64

The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues?: Attributes

Real-time Issues settings for the Worker.

</summary>

enabled?: Bool

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues">Link to this property</a>

<details>

<summary>

logs?: Attributes

Log settings for the Worker.

</summary>

destinations?: List\[String]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled?: Bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate?: Float64

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

invocation\_logs?: Bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20invocation_logs">Link to this property</a>

persist?: Bool

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs">Link to this property</a>

redact\_query\_string?: Bool

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces?: Attributes

Trace settings for the Worker.

</summary>

destinations?: List\[String]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled?: Bool

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate?: Float64

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist?: Bool

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20persist">Link to this property</a>

propagation\_policy?: String

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability">Link to this property</a>

<details>

<summary>

placement?: Attributes

Placement configuration used when creating new Previews.

</summary>

mode?: String

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20mode">Link to this property</a>

region?: String

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20region">Link to this property</a>

hostname?: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20hostname">Link to this property</a>

host?: String

TCP host and port for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20host">Link to this property</a>

<details>

<summary>

target?: List\[Attributes]

Array of placement targets (currently limited to single target).

</summary>

region?: String

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20region">Link to this property</a>

hostname?: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20hostname">Link to this property</a>

host?: String

TCP host:port for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement">Link to this property</a>

<details>

<summary>

tail\_consumers?: Set\[Attributes]

Other Workers that should consume logs from newly created Previews.

</summary>

name: String

Name of the consumer Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20tail_consumers">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_base_config>)

<details>

<summary>

subdomain?: Attributes

Subdomain settings for the Worker.

</summary>

enabled?: Bool

Whether the \*.workers.dev subdomain is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20enabled">Link to this property</a>

preview\_url\_suffix: String

Prepend a version or preview prefix to this host suffix to form the \*.workers.dev <a href="https://developers.cloudflare.com/workers/configuration/previews/">preview URL</a> the Worker would serve on once previews are enabled, e.g. <code>https://&lt;prefix&gt;-my-worker.my-subdomain.workers.dev</code>. Present whenever the account owns a workers.dev subdomain, regardless of whether <code>previews_enabled</code> is true, so presence does not imply preview URLs are currently live. Absent only when the account owns no workers.dev subdomain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20preview_url_suffix">Link to this property</a>

previews\_enabled?: Bool

Whether <a href="https://developers.cloudflare.com/workers/configuration/previews/">preview URLs</a> are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20previews_enabled">Link to this property</a>

url: String

The address the Worker would serve on once its \*.workers.dev subdomain is enabled. Present whenever the account owns a workers.dev subdomain, regardless of whether <code>enabled</code> is true, so presence does not imply the Worker is currently live at this URL. Absent only when the account owns no workers.dev subdomain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20url">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20subdomain>)

<details>

<summary>

tail\_consumers?: Set\[Attributes]

Other Workers that should consume logs from the Worker.

</summary>

name: String

Name of the consumer Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tail_consumers>)

##### computed Expand Collapse

id: String

Immutable ID of the Worker.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

created\_on: Time

When the Worker was created.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_on>)

deployed\_on: Time

When the Worker’s most recent deployment was created. `null` if the Worker has never been deployed.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20deployed_on>)

updated\_on: Time

When the Worker was most recently updated.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20updated_on>)

<details>

<summary>

references: Attributes

Other resources that reference the Worker and depend on it existing.

</summary>

<details>

<summary>

dispatch\_namespace\_outbounds: List\[Attributes]

Other Workers that reference the Worker as an outbound for a dispatch namespace.

</summary>

namespace\_id: String

ID of the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20namespace_id">Link to this property</a>

namespace\_name: String

Name of the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20namespace_name">Link to this property</a>

worker\_id: String

ID of the Worker using the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20worker_id">Link to this property</a>

worker\_name: String

Name of the Worker using the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds">Link to this property</a>

<details>

<summary>

domains: List\[Attributes]

Custom domains connected to the Worker.

</summary>

id: String

ID of the custom domain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20id">Link to this property</a>

certificate\_id: String

ID of the TLS certificate issued for the custom domain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20certificate_id">Link to this property</a>

hostname: String

Full hostname of the custom domain, including the zone name.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20hostname">Link to this property</a>

zone\_id: String

ID of the zone.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20zone_id">Link to this property</a>

zone\_name: String

Name of the zone.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20zone_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains">Link to this property</a>

<details>

<summary>

durable\_objects: List\[Attributes]

Other Workers that reference Durable Object classes implemented by the Worker.

</summary>

namespace\_id: String

ID of the Durable Object namespace being used.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20namespace_id">Link to this property</a>

namespace\_name: String

Name of the Durable Object namespace being used.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20namespace_name">Link to this property</a>

worker\_id: String

ID of the Worker using the Durable Object implementation.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20worker_id">Link to this property</a>

worker\_name: String

Name of the Worker using the Durable Object implementation.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects">Link to this property</a>

<details>

<summary>

queues: List\[Attributes]

Queues that send messages to the Worker.

</summary>

queue\_consumer\_id: String

ID of the queue consumer configuration.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues%20%3E%20(attribute)%20queue_consumer_id">Link to this property</a>

queue\_id: String

ID of the queue.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues%20%3E%20(attribute)%20queue_id">Link to this property</a>

queue\_name: String

Name of the queue.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues%20%3E%20(attribute)%20queue_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues">Link to this property</a>

<details>

<summary>

workers: List\[Attributes]

Other Workers that reference the Worker using <a href="https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/">service bindings</a>.

</summary>

id: String

ID of the referencing Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20workers%20%3E%20(attribute)%20id">Link to this property</a>

name: String

Name of the referencing Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20workers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20workers">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20references>)

### cloudflare\_worker

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_worker" "example_worker" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  name = "my-worker"
  logpush = true
  observability = {
    enabled = true
    head_sampling_rate = 1
    issues = {
      enabled = true
    }
    logs = {
      destinations = ["string"]
      enabled = true
      head_sampling_rate = 1
      invocation_logs = true
      persist = true
    }
    redact_query_string = true
    traces = {
      destinations = ["string"]
      enabled = true
      head_sampling_rate = 1
      persist = true
      propagation_policy = "authenticated"
    }
  }
  previews_base_config = {
    cache_options = {
      enabled = true
      cross_version_cache = true
    }
    env = {
      MY_ENV_VAR = {
        type = "plain_text"
      }
    }
    limits = {
      cpu_ms = 50
      subrequests = 1000
    }
    logpush = true
    observability = {
      enabled = true
      head_sampling_rate = 1
      issues = {
        enabled = true
      }
      logs = {
        destinations = ["string"]
        enabled = true
        head_sampling_rate = 1
        invocation_logs = true
        persist = true
      }
      redact_query_string = true
      traces = {
        destinations = ["string"]
        enabled = true
        head_sampling_rate = 1
        persist = true
        propagation_policy = "authenticated"
      }
    }
    placement = {
      mode = "smart"
    }
    tail_consumers = [{
      name = "my-tail-consumer"
    }]
  }
  subdomain = {
    enabled = true
    previews_enabled = true
  }
  tags = ["my-team", "my-public-api"]
  tail_consumers = [{
    name = "my-tail-consumer"
  }]
}
```

#### data cloudflare\_worker

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

worker\_id?: String

Identifier for the Worker, which can be ID or name.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20worker_id>)

<details>

<summary>

filter?: Attributes

</summary>

order?: String

Sort direction.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20order">Link to this property</a>

order\_by?: String

Property to sort results by.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20order_by">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter>)

##### computed Expand Collapse

id: String

Identifier for the Worker, which can be ID or name.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

created\_on: Time

When the Worker was created.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_on>)

deployed\_on: Time

When the Worker’s most recent deployment was created. `null` if the Worker has never been deployed.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20deployed_on>)

logpush: Bool

Whether logpush is enabled for the Worker.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20logpush>)

name: String

Name of the Worker.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20name>)

updated\_on: Time

When the Worker was most recently updated.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20updated_on>)

tags: Set\[String]

Tags associated with the Worker.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20tags>)

<details>

<summary>

observability: Attributes

Observability settings for the Worker.

</summary>

enabled: Bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues: Attributes

Real-time Issues settings for the Worker.

</summary>

enabled: Bool

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues">Link to this property</a>

<details>

<summary>

logs: Attributes

Log settings for the Worker.

</summary>

destinations: List\[String]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled: Bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

invocation\_logs: Bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20invocation_logs">Link to this property</a>

persist: Bool

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs">Link to this property</a>

redact\_query\_string: Bool

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces: Attributes

Trace settings for the Worker.

</summary>

destinations: List\[String]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled: Bool

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist: Bool

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20persist">Link to this property</a>

propagation\_policy: String

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20observability>)

<details>

<summary>

previews\_base\_config: Attributes

Template configuration used when creating new Previews for this Worker.

</summary>

<details>

<summary>

cache\_options: Attributes

Cache options used when creating new Previews.

</summary>

enabled: Bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20enabled">Link to this property</a>

cross\_version\_cache: Bool

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20cross_version_cache">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20cache_options">Link to this property</a>

<details>

<summary>

env: Map\[Attributes]

Bindings used when creating new Previews, keyed by binding name.

</summary>

type: String

The kind of resource that the binding provides.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20env%20%3E%20(attribute)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20env">Link to this property</a>

<details>

<summary>

limits: Attributes

Resource limits enforced at runtime for newly created Previews.

</summary>

cpu\_ms: Int64

The amount of CPU time this Worker can use in milliseconds.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20cpu_ms">Link to this property</a>

subrequests: Int64

The number of subrequests this Worker can make per request.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20subrequests">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20limits">Link to this property</a>

logpush: Bool

Whether logpush is enabled when creating new Previews.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20logpush">Link to this property</a>

<details>

<summary>

observability: Attributes

Observability settings used when creating new Previews.

</summary>

enabled: Bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues: Attributes

Real-time Issues settings for the Worker.

</summary>

enabled: Bool

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues">Link to this property</a>

<details>

<summary>

logs: Attributes

Log settings for the Worker.

</summary>

destinations: List\[String]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled: Bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

invocation\_logs: Bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20invocation_logs">Link to this property</a>

persist: Bool

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs">Link to this property</a>

redact\_query\_string: Bool

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces: Attributes

Trace settings for the Worker.

</summary>

destinations: List\[String]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled: Bool

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist: Bool

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20persist">Link to this property</a>

propagation\_policy: String

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability">Link to this property</a>

<details>

<summary>

placement: Attributes

Placement configuration used when creating new Previews.

</summary>

mode: String

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20mode">Link to this property</a>

region: String

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host and port for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20host">Link to this property</a>

<details>

<summary>

target: List\[Attributes]

Array of placement targets (currently limited to single target).

</summary>

region: String

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host:port for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement">Link to this property</a>

<details>

<summary>

tail\_consumers: Set\[Attributes]

Other Workers that should consume logs from newly created Previews.

</summary>

name: String

Name of the consumer Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20tail_consumers">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_base_config>)

<details>

<summary>

references: Attributes

Other resources that reference the Worker and depend on it existing.

</summary>

<details>

<summary>

dispatch\_namespace\_outbounds: List\[Attributes]

Other Workers that reference the Worker as an outbound for a dispatch namespace.

</summary>

namespace\_id: String

ID of the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20namespace_id">Link to this property</a>

namespace\_name: String

Name of the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20namespace_name">Link to this property</a>

worker\_id: String

ID of the Worker using the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20worker_id">Link to this property</a>

worker\_name: String

Name of the Worker using the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds">Link to this property</a>

<details>

<summary>

domains: List\[Attributes]

Custom domains connected to the Worker.

</summary>

id: String

ID of the custom domain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20id">Link to this property</a>

certificate\_id: String

ID of the TLS certificate issued for the custom domain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20certificate_id">Link to this property</a>

hostname: String

Full hostname of the custom domain, including the zone name.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20hostname">Link to this property</a>

zone\_id: String

ID of the zone.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20zone_id">Link to this property</a>

zone\_name: String

Name of the zone.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20zone_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains">Link to this property</a>

<details>

<summary>

durable\_objects: List\[Attributes]

Other Workers that reference Durable Object classes implemented by the Worker.

</summary>

namespace\_id: String

ID of the Durable Object namespace being used.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20namespace_id">Link to this property</a>

namespace\_name: String

Name of the Durable Object namespace being used.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20namespace_name">Link to this property</a>

worker\_id: String

ID of the Worker using the Durable Object implementation.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20worker_id">Link to this property</a>

worker\_name: String

Name of the Worker using the Durable Object implementation.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects">Link to this property</a>

<details>

<summary>

queues: List\[Attributes]

Queues that send messages to the Worker.

</summary>

queue\_consumer\_id: String

ID of the queue consumer configuration.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues%20%3E%20(attribute)%20queue_consumer_id">Link to this property</a>

queue\_id: String

ID of the queue.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues%20%3E%20(attribute)%20queue_id">Link to this property</a>

queue\_name: String

Name of the queue.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues%20%3E%20(attribute)%20queue_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues">Link to this property</a>

<details>

<summary>

workers: List\[Attributes]

Other Workers that reference the Worker using <a href="https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/">service bindings</a>.

</summary>

id: String

ID of the referencing Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20workers%20%3E%20(attribute)%20id">Link to this property</a>

name: String

Name of the referencing Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20workers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references%20%3E%20(attribute)%20workers">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20references>)

<details>

<summary>

subdomain: Attributes

Subdomain settings for the Worker.

</summary>

enabled: Bool

Whether the \*.workers.dev subdomain is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20enabled">Link to this property</a>

preview\_url\_suffix: String

Prepend a version or preview prefix to this host suffix to form the \*.workers.dev <a href="https://developers.cloudflare.com/workers/configuration/previews/">preview URL</a> the Worker would serve on once previews are enabled, e.g. <code>https://&lt;prefix&gt;-my-worker.my-subdomain.workers.dev</code>. Present whenever the account owns a workers.dev subdomain, regardless of whether <code>previews_enabled</code> is true, so presence does not imply preview URLs are currently live. Absent only when the account owns no workers.dev subdomain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20preview_url_suffix">Link to this property</a>

previews\_enabled: Bool

Whether <a href="https://developers.cloudflare.com/workers/configuration/previews/">preview URLs</a> are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20previews_enabled">Link to this property</a>

url: String

The address the Worker would serve on once its \*.workers.dev subdomain is enabled. Present whenever the account owns a workers.dev subdomain, regardless of whether <code>enabled</code> is true, so presence does not imply the Worker is currently live at this URL. Absent only when the account owns no workers.dev subdomain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20url">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20subdomain>)

<details>

<summary>

tail\_consumers: Set\[Attributes]

Other Workers that should consume logs from the Worker.

</summary>

name: String

Name of the consumer Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20tail_consumers>)

### cloudflare\_worker

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_worker" "example_worker" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  worker_id = "worker_id"
}
```

#### data cloudflare\_workers

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

order?: String

Sort direction.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20order>)

order\_by?: String

Property to sort results by.

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20order_by>)

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Immutable ID of the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

created\_on: Time

When the Worker was created.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created_on">Link to this property</a>

logpush: Bool

Whether logpush is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20logpush">Link to this property</a>

name: String

Name of the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20name">Link to this property</a>

<details>

<summary>

observability: Attributes

Observability settings for the Worker.

</summary>

enabled: Bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues: Attributes

Real-time Issues settings for the Worker.

</summary>

enabled: Bool

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues">Link to this property</a>

<details>

<summary>

logs: Attributes

Log settings for the Worker.

</summary>

destinations: List\[String]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled: Bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

invocation\_logs: Bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20invocation_logs">Link to this property</a>

persist: Bool

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs">Link to this property</a>

redact\_query\_string: Bool

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces: Attributes

Trace settings for the Worker.

</summary>

destinations: List\[String]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled: Bool

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist: Bool

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20persist">Link to this property</a>

propagation\_policy: String

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability">Link to this property</a>

<details>

<summary>

references: Attributes

Other resources that reference the Worker and depend on it existing.

</summary>

<details>

<summary>

dispatch\_namespace\_outbounds: List\[Attributes]

Other Workers that reference the Worker as an outbound for a dispatch namespace.

</summary>

namespace\_id: String

ID of the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20namespace_id">Link to this property</a>

namespace\_name: String

Name of the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20namespace_name">Link to this property</a>

worker\_id: String

ID of the Worker using the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20worker_id">Link to this property</a>

worker\_name: String

Name of the Worker using the dispatch namespace.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds%20%3E%20(attribute)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20dispatch_namespace_outbounds">Link to this property</a>

<details>

<summary>

domains: List\[Attributes]

Custom domains connected to the Worker.

</summary>

id: String

ID of the custom domain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20id">Link to this property</a>

certificate\_id: String

ID of the TLS certificate issued for the custom domain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20certificate_id">Link to this property</a>

hostname: String

Full hostname of the custom domain, including the zone name.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20hostname">Link to this property</a>

zone\_id: String

ID of the zone.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20zone_id">Link to this property</a>

zone\_name: String

Name of the zone.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains%20%3E%20(attribute)%20zone_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20domains">Link to this property</a>

<details>

<summary>

durable\_objects: List\[Attributes]

Other Workers that reference Durable Object classes implemented by the Worker.

</summary>

namespace\_id: String

ID of the Durable Object namespace being used.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20namespace_id">Link to this property</a>

namespace\_name: String

Name of the Durable Object namespace being used.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20namespace_name">Link to this property</a>

worker\_id: String

ID of the Worker using the Durable Object implementation.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20worker_id">Link to this property</a>

worker\_name: String

Name of the Worker using the Durable Object implementation.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects%20%3E%20(attribute)%20worker_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20durable_objects">Link to this property</a>

<details>

<summary>

queues: List\[Attributes]

Queues that send messages to the Worker.

</summary>

queue\_consumer\_id: String

ID of the queue consumer configuration.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues%20%3E%20(attribute)%20queue_consumer_id">Link to this property</a>

queue\_id: String

ID of the queue.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues%20%3E%20(attribute)%20queue_id">Link to this property</a>

queue\_name: String

Name of the queue.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues%20%3E%20(attribute)%20queue_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20queues">Link to this property</a>

<details>

<summary>

workers: List\[Attributes]

Other Workers that reference the Worker using <a href="https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/">service bindings</a>.

</summary>

id: String

ID of the referencing Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20workers%20%3E%20(attribute)%20id">Link to this property</a>

name: String

Name of the referencing Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20workers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references%20%3E%20(attribute)%20workers">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20references">Link to this property</a>

<details>

<summary>

subdomain: Attributes

Subdomain settings for the Worker.

</summary>

enabled: Bool

Whether the \*.workers.dev subdomain is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20enabled">Link to this property</a>

preview\_url\_suffix: String

Prepend a version or preview prefix to this host suffix to form the \*.workers.dev <a href="https://developers.cloudflare.com/workers/configuration/previews/">preview URL</a> the Worker would serve on once previews are enabled, e.g. <code>https://&lt;prefix&gt;-my-worker.my-subdomain.workers.dev</code>. Present whenever the account owns a workers.dev subdomain, regardless of whether <code>previews_enabled</code> is true, so presence does not imply preview URLs are currently live. Absent only when the account owns no workers.dev subdomain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20preview_url_suffix">Link to this property</a>

previews\_enabled: Bool

Whether <a href="https://developers.cloudflare.com/workers/configuration/previews/">preview URLs</a> are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20previews_enabled">Link to this property</a>

url: String

The address the Worker would serve on once its \*.workers.dev subdomain is enabled. Present whenever the account owns a workers.dev subdomain, regardless of whether <code>enabled</code> is true, so presence does not imply the Worker is currently live at this URL. Absent only when the account owns no workers.dev subdomain.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20subdomain%20%3E%20(attribute)%20url">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20subdomain">Link to this property</a>

tags: Set\[String]

Tags associated with the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tags">Link to this property</a>

<details>

<summary>

tail\_consumers: Set\[Attributes]

Other Workers that should consume logs from the Worker.

</summary>

name: String

Name of the consumer Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tail_consumers">Link to this property</a>

updated\_on: Time

When the Worker was most recently updated.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20updated_on">Link to this property</a>

deployed\_on: Time

When the Worker’s most recent deployment was created. <code>null</code> if the Worker has never been deployed.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployed_on">Link to this property</a>

<details>

<summary>

previews\_base\_config: Attributes

Template configuration used when creating new Previews for this Worker.

</summary>

<details>

<summary>

cache\_options: Attributes

Cache options used when creating new Previews.

</summary>

enabled: Bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20enabled">Link to this property</a>

cross\_version\_cache: Bool

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20cross_version_cache">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20cache_options">Link to this property</a>

<details>

<summary>

env: Map\[Attributes]

Bindings used when creating new Previews, keyed by binding name.

</summary>

type: String

The kind of resource that the binding provides.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20env%20%3E%20(attribute)%20type">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20env">Link to this property</a>

<details>

<summary>

limits: Attributes

Resource limits enforced at runtime for newly created Previews.

</summary>

cpu\_ms: Int64

The amount of CPU time this Worker can use in milliseconds.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20cpu_ms">Link to this property</a>

subrequests: Int64

The number of subrequests this Worker can make per request.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20subrequests">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20limits">Link to this property</a>

logpush: Bool

Whether logpush is enabled when creating new Previews.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20logpush">Link to this property</a>

<details>

<summary>

observability: Attributes

Observability settings used when creating new Previews.

</summary>

enabled: Bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for observability. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues: Attributes

Real-time Issues settings for the Worker.

</summary>

enabled: Bool

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues">Link to this property</a>

<details>

<summary>

logs: Attributes

Log settings for the Worker.

</summary>

destinations: List\[String]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled: Bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

invocation\_logs: Bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20invocation_logs">Link to this property</a>

persist: Bool

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs">Link to this property</a>

redact\_query\_string: Bool

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces: Attributes

Trace settings for the Worker.

</summary>

destinations: List\[String]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled: Bool

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%).

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist: Bool

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20persist">Link to this property</a>

propagation\_policy: String

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20observability">Link to this property</a>

<details>

<summary>

placement: Attributes

Placement configuration used when creating new Previews.

</summary>

mode: String

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20mode">Link to this property</a>

region: String

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host and port for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20host">Link to this property</a>

<details>

<summary>

target: List\[Attributes]

Array of placement targets (currently limited to single target).

</summary>

region: String

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host:port for targeted placement.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20placement">Link to this property</a>

<details>

<summary>

tail\_consumers: Set\[Attributes]

Other Workers that should consume logs from newly created Previews.

</summary>

name: String

Name of the consumer Worker.

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config%20%3E%20(attribute)%20tail_consumers">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20previews_base_config">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_workers

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers" "example_workers" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### WorkersBetaWorkersVersions

#### resource cloudflare\_worker\_version

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

worker\_id: String

Identifier for the Worker, which can be ID or name.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20worker_id>)

##### optional Expand Collapse

compatibility\_date?: String

Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20compatibility_date>)

main\_module?: String

The name of the main module in the `modules` array (e.g. the name of the module that exports a `fetch` handler).

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20main_module>)

<details>

<summary>

containers?: Set\[Attributes]

List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.

</summary>

class\_name: String

Select which Durable Object class should get this container attached.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20containers%20%3E%20(attribute)%20class_name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20containers>)

<details>

<summary>

exports?: Map\[Attributes]

Declarative exports for the version, including Durable Object classes (with their <code>storage</code> backend) and named Worker entrypoints. On reads, tombstoned lifecycle entries are omitted, so only live exports (<code>created</code> and <code>expecting-transfer</code>) are returned. <code>exports</code> and <code>migrations</code> are mutually exclusive on upload.

</summary>

type: String

Marks this entry as a Worker entrypoint export.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20type">Link to this property</a>

<details>

<summary>

cache?: Attributes

Cache override for this entrypoint. Overrides the Worker’s global <code>cache_options.enabled</code> for this entrypoint only.

</summary>

enabled: Bool

Whether caching is enabled for this entrypoint.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache">Link to this property</a>

state?: String

Live export. May be omitted; defaults to <code>created</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20state">Link to this property</a>

storage?: String

Durable Object storage backend. <code>sqlite</code> is the recommended (and only) backend for new namespaces. <code>legacy-kv</code> is accepted only for a class whose namespace already exists as KV-backed; the <code>exports</code> flow never provisions a new <code>legacy-kv</code> namespace.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20storage">Link to this property</a>

container?: String

Name of the container (declared in the upload’s <code>metadata.containers</code>) that backs this Durable Object. When set, the namespace is container-enabled. Valid only on live entries.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20container">Link to this property</a>

renamed\_to?: String

The destination class name. Must differ from the source class (the map key) and must be declared as a live (<code>created</code>) entry in the same <code>exports</code> map. Write-only: never present in GET responses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20renamed_to">Link to this property</a>

transferred\_to?: String

The destination script name. Must be in the same account and the same dispatch-namespace context (or both non-dispatch). Cross-dispatch-namespace transfers are rejected. Write-only: never present in GET responses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transferred_to">Link to this property</a>

transfer\_from?: String

The source script name to receive the namespace from. Must be in the same account and dispatch-namespace context. Present on reads for <code>expecting-transfer</code> entries.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transfer_from">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports>)

<details>

<summary>

migrations?: Attributes

Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.

</summary>

deleted\_classes?: List\[String]

A list of classes to delete Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20deleted_classes">Link to this property</a>

new\_classes?: List\[String]

A list of classes to create Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_classes">Link to this property</a>

new\_sqlite\_classes?: List\[String]

A list of classes to create Durable Object namespaces with SQLite from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_sqlite_classes">Link to this property</a>

new\_tag?: String

Tag to set as the latest migration tag.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_tag">Link to this property</a>

old\_tag?: String

Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20old_tag">Link to this property</a>

<details>

<summary>

renamed\_classes?: List\[Attributes]

A list of classes with Durable Object namespaces that were renamed.

</summary>

from?: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20from">Link to this property</a>

to?: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes">Link to this property</a>

<details>

<summary>

transferred\_classes?: List\[Attributes]

A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.

</summary>

from?: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from">Link to this property</a>

from\_script?: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from_script">Link to this property</a>

to?: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes">Link to this property</a>

<details>

<summary>

steps?: List\[Attributes]

Migrations to apply in order.

</summary>

deleted\_classes?: List\[String]

A list of classes to delete Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20deleted_classes">Link to this property</a>

new\_classes?: List\[String]

A list of classes to create Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20new_classes">Link to this property</a>

new\_sqlite\_classes?: List\[String]

A list of classes to create Durable Object namespaces with SQLite from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20new_sqlite_classes">Link to this property</a>

<details>

<summary>

renamed\_classes?: List\[Attributes]

A list of classes with Durable Object namespaces that were renamed.

</summary>

from?: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20from">Link to this property</a>

to?: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes">Link to this property</a>

<details>

<summary>

transferred\_classes?: List\[Attributes]

A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.

</summary>

from?: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from">Link to this property</a>

from\_script?: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from_script">Link to this property</a>

to?: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migrations>)

<details>

<summary>

modules?: Set\[Attributes]

Code, sourcemaps, and other content used at runtime.

This includes <a href="https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers"><code>_headers</code></a> and <a href="https://developers.cloudflare.com/workers/static-assets/redirects/"><code>_redirects</code></a> files used to configure <a href="https://developers.cloudflare.com/workers/static-assets/">Static Assets</a>. <code>_headers</code> and <code>_redirects</code> files should be included as modules named <code>_headers</code> and <code>_redirects</code> with content type <code>text/plain</code>.

</summary>

content\_base64: String

The base64-encoded module content.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modules%20%3E%20(attribute)%20content_base64">Link to this property</a>

content\_type: String

The content type of the module.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modules%20%3E%20(attribute)%20content_type">Link to this property</a>

name: String

The name of the module.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modules%20%3E%20(attribute)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modules>)

<details>

<summary>

package\_dependencies?: List\[Attributes]

The list of npm packages that were installed and used when this Worker version was built.

</summary>

installed\_version: String

The exact version that was resolved and installed by the package manager.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20installed_version">Link to this property</a>

name: String

The npm package name.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20name">Link to this property</a>

package\_json\_version: String

The version constraint as written in package.json.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20package_json_version">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20package_dependencies>)

<details>

<summary>

placement?: Attributes

Configuration for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.

</summary>

mode?: String

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20mode">Link to this property</a>

region?: String

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20region">Link to this property</a>

hostname?: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20hostname">Link to this property</a>

host?: String

TCP host and port for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20host">Link to this property</a>

<details>

<summary>

target?: List\[Attributes]

Array of placement targets (currently limited to single target).

</summary>

region?: String

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20region">Link to this property</a>

hostname?: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20hostname">Link to this property</a>

host?: String

TCP host:port for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement>)

Deprecatedusage\_model?: String

Usage model for the version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20usage_model>)

compatibility\_flags?: Set\[String]

Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20compatibility_flags>)

<details>

<summary>

annotations?: Attributes

Metadata about the version.

</summary>

workers\_message?: String

Human-readable message about the version. Truncated to 1000 bytes if longer.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_message">Link to this property</a>

workers\_tag?: String

User-provided identifier for the version. Maximum 100 bytes.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_tag">Link to this property</a>

workers\_triggered\_by: String

Operation that triggered the creation of the version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_triggered_by">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20annotations>)

<details>

<summary>

assets?: Attributes

Configuration for assets within a Worker.

<a href="https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers"><code>_headers</code></a> and <a href="https://developers.cloudflare.com/workers/static-assets/redirects/"><code>_redirects</code></a> files should be included as modules named <code>_headers</code> and <code>_redirects</code> with content type <code>text/plain</code>.

</summary>

<details>

<summary>

config?: Attributes

Configuration for assets within a Worker.

</summary>

base\_path?: String

The public URL path prefix under which assets are served. A null request value resets it to <code>/</code>; responses represent the root as <code>/</code>. All versions in a gradual deployment must use the same canonical value. To change it, first deploy the version containing the change at 100%.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20base_path">Link to this property</a>

html\_handling?: String

Determines the redirects and rewrites of requests for HTML content.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20html_handling">Link to this property</a>

not\_found\_handling?: String

Determines the response when a request does not match a static asset, and there is no Worker script.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20not_found_handling">Link to this property</a>

run\_worker\_first?: List\[String]

Contains a list path rules to control routing to either the Worker or assets. Glob (\*) and negative (!) rules are supported. Rules must start with either ’/’ or ’!/’. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20run_worker_first">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config">Link to this property</a>

jwt?: String

Token provided upon successful upload of all files from a registered manifest.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20jwt">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20assets>)

<details>

<summary>

bindings?: List\[Attributes]

List of bindings attached to a Worker. You can find more about bindings on our docs: <a href="https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings">https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings</a>.

</summary>

name: String

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20name">Link to this property</a>

type: String

The kind of resource that the binding provides.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20type">Link to this property</a>

instance\_name?: String

The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20instance_name">Link to this property</a>

namespace?: String

The namespace the instance belongs to. Defaults to “default” if omitted. Customers who don’t use namespaces can simply omit this field.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20namespace">Link to this property</a>

dataset?: String

The name of the dataset to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20dataset">Link to this property</a>

database\_id?: String

Identifier of the D1 database to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20database_id">Link to this property</a>

id?: String

Identifier of the D1 database to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20id">Link to this property</a>

part?: String

The name of the file containing the data content. Only accepted for <code>service worker syntax</code> Workers.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20part">Link to this property</a>

<details>

<summary>

outbound?: Attributes

Outbound worker.

</summary>

<details>

<summary>

params?: List\[Attributes]

Pass information from the Dispatch Worker to the Outbound Worker through the parameters.

</summary>

name: String

Name of the parameter.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20params%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20params">Link to this property</a>

<details>

<summary>

worker?: Attributes

Outbound worker.

</summary>

entrypoint?: String

Entrypoint to invoke on the outbound worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20entrypoint">Link to this property</a>

environment?: String

Environment of the outbound worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20environment">Link to this property</a>

service?: String

Name of the outbound worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20service">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound">Link to this property</a>

class\_name?: String

The exported class name of the Durable Object.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20class_name">Link to this property</a>

dispatch\_namespace?: String

The dispatch namespace the Durable Object script belongs to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20dispatch_namespace">Link to this property</a>

environment?: String

The environment of the script\_name to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20environment">Link to this property</a>

namespace\_id?: String

Namespace identifier tag.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20namespace_id">Link to this property</a>

script\_name?: String

The script where the Durable Object is defined, if it is external to this Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20script_name">Link to this property</a>

old\_name?: String

The old name of the inherited binding. If set, the binding will be renamed from <code>old_name</code> to <code>name</code> in the new version. If not set, the binding will keep the same name between versions.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20old_name">Link to this property</a>

version\_id?: String

Identifier for the version to inherit the binding from, which can be the version ID or the literal “latest” to inherit from the latest version. Defaults to inheriting the binding from the latest version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20version_id">Link to this property</a>

json?: JSON

JSON data to use.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20json">Link to this property</a>

certificate\_id?: String

Identifier of the certificate to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20certificate_id">Link to this property</a>

text?: String

The text value to use.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20text">Link to this property</a>

pipeline?: String

Name of the Pipeline to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20pipeline">Link to this property</a>

stream?: String

ID of a K2 stream owned by the account deploying the Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20stream">Link to this property</a>

queue\_name?: String

Name of the Queue to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20queue_name">Link to this property</a>

<details>

<summary>

simple?: Attributes

The rate limit configuration.

</summary>

limit: Float64

The limit (requests per period).

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20limit">Link to this property</a>

period: Int64

The period in seconds.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20period">Link to this property</a>

mitigation\_timeout?: Int64

Duration in seconds to apply the mitigation action after the rate limit is exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400. Must be greater than or equal to the period when non-zero.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20mitigation_timeout">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple">Link to this property</a>

bucket\_name?: String

R2 bucket to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20bucket_name">Link to this property</a>

jurisdiction?: String

The <a href="https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions">jurisdiction</a> of the R2 bucket.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20jurisdiction">Link to this property</a>

allowed\_destination\_addresses?: List\[String]

List of allowed destination addresses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20allowed_destination_addresses">Link to this property</a>

allowed\_sender\_addresses?: List\[String]

List of allowed sender addresses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20allowed_sender_addresses">Link to this property</a>

destination\_address?: String

Destination address for the email.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20destination_address">Link to this property</a>

service?: String

Name of Worker to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20service">Link to this property</a>

entrypoint?: String

Entrypoint to invoke on the target Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20entrypoint">Link to this property</a>

index\_name?: String

Name of the Vectorize index to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20index_name">Link to this property</a>

secret\_name?: String

Name of the secret in the store.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20secret_name">Link to this property</a>

store\_id?: String

ID of the store containing the secret.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20store_id">Link to this property</a>

app\_id?: String

ID of the Flagship app to bind to for feature flag evaluation.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20app_id">Link to this property</a>

algorithm?: JSON

Algorithm-specific key parameters. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm">Learn more</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20algorithm">Link to this property</a>

format?: String

Data format of the key. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format">Learn more</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20format">Link to this property</a>

usages?: Set\[String]

Allowed operations with the key. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages">Learn more</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20usages">Link to this property</a>

key\_base64?: String

Base64-encoded key data. Required if <code>format</code> is “raw”, “pkcs8”, or “spki”.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20key_base64">Link to this property</a>

key\_jwk?: JSON

Key data in <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key">JSON Web Key</a> format. Required if <code>format</code> is “jwk”.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20key_jwk">Link to this property</a>

workflow\_name?: String

Name of the Workflow to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20workflow_name">Link to this property</a>

service\_id?: String

Identifier of the VPC service to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20service_id">Link to this property</a>

identity?: String

Enables Gateway identity for the binding. Requires network\_id to be “cf1:network” and cannot be combined with tunnel\_id.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20identity">Link to this property</a>

network\_id?: String

Identifier of the network to bind to. Only “cf1:network” is currently supported. Mutually exclusive with tunnel\_id.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20network_id">Link to this property</a>

tunnel\_id?: String

UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network\_id.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20tunnel_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20bindings>)

<details>

<summary>

cache\_options?: Attributes

Global CacheW configuration for the Worker. When caching is on, the platform provisions a <code>cloudflare.app</code> zone for the Worker. A <code>type: worker</code> entry in the <code>exports</code> map can override this value for a single entrypoint.

</summary>

enabled?: Bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20enabled">Link to this property</a>

cross\_version\_cache?: Bool

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20cross_version_cache">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20cache_options>)

<details>

<summary>

limits?: Attributes

Resource limits enforced at runtime.

</summary>

cpu\_ms?: Int64

CPU time limit in milliseconds.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20cpu_ms">Link to this property</a>

subrequests?: Int64

Subrequest limit per request.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20subrequests">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20limits>)

##### computed Expand Collapse

id: String

Version identifier.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

author\_email: String

Email of the user who created the version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20author_email>)

author\_id: String

Identifier of the user who created the version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20author_id>)

created\_on: Time

When the version was created.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_on>)

migration\_tag: String

Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migration_tag>)

number: Int64

The integer version number, starting from one.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20number>)

source: String

The client used to create the version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20source>)

startup\_time\_ms: Int64

Time in milliseconds spent on [Worker startup](https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time).

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20startup_time_ms>)

urls: List\[String]

All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20urls>)

<details>

<summary>

exports\_reconciliation: Attributes

Summary of the declarative exports reconciliation that ran on this upload. Populated only when the uploaded metadata included an <code>exports</code> block. Durable Object entries drive reconciliation; <code>type: worker</code> entries do not contribute to this summary.

</summary>

created: List\[String]

Class names for which a new namespace was provisioned.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20created">Link to this property</a>

deleted: List\[String]

Class names whose namespace was deleted by a <code>deleted</code> tombstone.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20deleted">Link to this property</a>

<details>

<summary>

info: List\[Attributes]

Non-blocking info entries (stale tombstones, tombstone applied with class still in code). See <code>exports_reconciliation_info</code>.

</summary>

class: String

The class name the info entry is about.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20class">Link to this property</a>

message: String

Human-readable explanation.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20message">Link to this property</a>

scenario: String

Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing <code>message</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20scenario">Link to this property</a>

namespace\_id: String

The provisioned namespace the entry relates to, when applicable.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20namespace_id">Link to this property</a>

referencing\_scripts: List\[String]

Other Workers in the account that still bind to the affected class. Advisory: while non-empty the tombstone is not yet safe to remove — redeploy these Workers with bindings re-pointed first.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20referencing_scripts">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info">Link to this property</a>

removable\_entries: List\[String]

Source class names whose tombstone entry is now stale and safe to delete from <code>exports</code> (no remaining referencing scripts).

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20removable_entries">Link to this property</a>

<details>

<summary>

renamed: List\[Attributes]

Applied <code>renamed</code> tombstones.

</summary>

from: String

The original (source) class name.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed%20%3E%20(attribute)%20from">Link to this property</a>

to: String

The new class name (<code>renamed_to</code>).

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed">Link to this property</a>

<details>

<summary>

transfer\_pending: List\[Attributes]

Phase-1 transfer hints recorded on the target side.

</summary>

class: String

The target-side class name awaiting transfer.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending%20%3E%20(attribute)%20class">Link to this property</a>

from: String

The source script the namespace will be transferred from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending%20%3E%20(attribute)%20from">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending">Link to this property</a>

<details>

<summary>

transferred: List\[Attributes]

Committed <code>transferred</code> tombstones (phase-2).

</summary>

class: String

The source class name that was transferred.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20class">Link to this property</a>

phase: String

The transfer phase. Currently always <code>committed</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20phase">Link to this property</a>

to: String

The destination script that now owns the namespace.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred">Link to this property</a>

updated: List\[String]

Class names whose provisioned namespace was mutated in place.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20updated">Link to this property</a>

<details>

<summary>

warnings: List\[Attributes]

Non-blocking warnings. See <code>exports_reconciliation_warning</code>.

</summary>

class: String

The class name the warning is about.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20class">Link to this property</a>

message: String

Human-readable explanation of the warning.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20message">Link to this property</a>

scenario: String

Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing <code>message</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20scenario">Link to this property</a>

namespace\_id: String

The provisioned namespace the warning relates to, when applicable.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports_reconciliation>)

### cloudflare\_worker\_version

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_worker_version" "example_worker_version" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  worker_id = "worker_id"
  annotations = {
    workers_message = "Fixed bug."
    workers_tag = "v1.0.1"
  }
  assets = {
    config = {
      base_path = "/docs/"
      html_handling = "auto-trailing-slash"
      not_found_handling = "404-page"
      run_worker_first = []
    }
    jwt = "jwt"
  }
  bindings = [{
    name = "MY_ENV_VAR"
    text = "my_data"
    type = "plain_text"
  }]
  cache_options = {
    enabled = true
    cross_version_cache = true
  }
  compatibility_date = "2021-01-01T00:00:00Z"
  compatibility_flags = ["nodejs_compat"]
  containers = [{
    class_name = "MyDurableObject"
  }]
  exports = {
    Admin = {
      type = "worker"
      cache = {
        enabled = true
      }
      state = "created"
    }
    Counter = {
      storage = "sqlite"
      type = "durable-object"
      container = "my-container"
      state = "created"
    }
    OldCounter = {
      renamed_to = "Counter"
      state = "renamed"
      type = "durable-object"
    }
    default = {
      type = "worker"
      cache = {
        enabled = false
      }
      state = "created"
    }
  }
  limits = {
    cpu_ms = 50
    subrequests = 1000
  }
  main_module = "index.js"
  migrations = {
    deleted_classes = ["string"]
    new_classes = ["string"]
    new_sqlite_classes = ["string"]
    new_tag = "v2"
    old_tag = "v1"
    renamed_classes = [{
      from = "from"
      to = "to"
    }]
    transferred_classes = [{
      from = "from"
      from_script = "from_script"
      to = "to"
    }]
  }
  modules = [{
    content_base64 = "ZXhwb3J0IGRlZmF1bHQgewogIGFzeW5jIGZldGNoKHJlcXVlc3QsIGVudiwgY3R4KSB7CiAgICByZXR1cm4gbmV3IFJlc3BvbnNlKCdIZWxsbyBXb3JsZCEnKQogIH0KfQ=="
    content_type = "application/javascript+module"
    name = "index.js"
  }]
  package_dependencies = [{
    installed_version = "4.17.22"
    name = "lodash"
    package_json_version = "^4.17.21"
  }]
  placement = {
    mode = "smart"
  }
  usage_model = "standard"
}
```

#### data cloudflare\_worker\_version

##### required Expand Collapse

version\_id: String

Identifier for the version, which can be a UUID, a UUID prefix (minimum length 8), or the literal “latest” to operate on the most recently created version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20version_id>)

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

worker\_id: String

Identifier for the Worker, which can be ID or name.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20worker_id>)

##### optional Expand Collapse

include?: String

Whether to include the `modules` property of the version in the response, which contains code and sourcemap content and may add several megabytes to the response size.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20include>)

##### computed Expand Collapse

id: String

Identifier for the version, which can be a UUID, a UUID prefix (minimum length 8), or the literal “latest” to operate on the most recently created version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

author\_email: String

Email of the user who created the version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20author_email>)

author\_id: String

Identifier of the user who created the version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20author_id>)

compatibility\_date: String

Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20compatibility_date>)

created\_on: Time

When the version was created.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_on>)

main\_module: String

The name of the main module in the `modules` array (e.g. the name of the module that exports a `fetch` handler).

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20main_module>)

migration\_tag: String

Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migration_tag>)

number: Int64

The integer version number, starting from one.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20number>)

source: String

The client used to create the version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20source>)

startup\_time\_ms: Int64

Time in milliseconds spent on [Worker startup](https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time).

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20startup_time_ms>)

Deprecatedusage\_model: String

Usage model for the version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20usage_model>)

compatibility\_flags: Set\[String]

Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20compatibility_flags>)

urls: List\[String]

All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20urls>)

<details>

<summary>

annotations: Attributes

Metadata about the version.

</summary>

workers\_message: String

Human-readable message about the version. Truncated to 1000 bytes if longer.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_message">Link to this property</a>

workers\_tag: String

User-provided identifier for the version. Maximum 100 bytes.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_tag">Link to this property</a>

workers\_triggered\_by: String

Operation that triggered the creation of the version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_triggered_by">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20annotations>)

<details>

<summary>

assets: Attributes

Configuration for assets within a Worker.

<a href="https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers"><code>_headers</code></a> and <a href="https://developers.cloudflare.com/workers/static-assets/redirects/"><code>_redirects</code></a> files should be included as modules named <code>_headers</code> and <code>_redirects</code> with content type <code>text/plain</code>.

</summary>

<details>

<summary>

config: Attributes

Configuration for assets within a Worker.

</summary>

base\_path: String

The public URL path prefix under which assets are served. A null request value resets it to <code>/</code>; responses represent the root as <code>/</code>. All versions in a gradual deployment must use the same canonical value. To change it, first deploy the version containing the change at 100%.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20base_path">Link to this property</a>

html\_handling: String

Determines the redirects and rewrites of requests for HTML content.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20html_handling">Link to this property</a>

not\_found\_handling: String

Determines the response when a request does not match a static asset, and there is no Worker script.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20not_found_handling">Link to this property</a>

run\_worker\_first: List\[String]

Contains a list path rules to control routing to either the Worker or assets. Glob (\*) and negative (!) rules are supported. Rules must start with either ’/’ or ’!/’. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20run_worker_first">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config">Link to this property</a>

jwt: String

Token provided upon successful upload of all files from a registered manifest.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20jwt">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20assets>)

<details>

<summary>

bindings: List\[Attributes]

List of bindings attached to a Worker. You can find more about bindings on our docs: <a href="https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings">https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings</a>.

</summary>

name: String

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20name">Link to this property</a>

type: String

The kind of resource that the binding provides.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20type">Link to this property</a>

instance\_name: String

The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20instance_name">Link to this property</a>

namespace: String

The namespace the instance belongs to. Defaults to “default” if omitted. Customers who don’t use namespaces can simply omit this field.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20namespace">Link to this property</a>

dataset: String

The name of the dataset to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20dataset">Link to this property</a>

database\_id: String

Identifier of the D1 database to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20database_id">Link to this property</a>

id: String

Identifier of the D1 database to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20id">Link to this property</a>

part: String

The name of the file containing the data content. Only accepted for <code>service worker syntax</code> Workers.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20part">Link to this property</a>

<details>

<summary>

outbound: Attributes

Outbound worker.

</summary>

<details>

<summary>

params: List\[Attributes]

Pass information from the Dispatch Worker to the Outbound Worker through the parameters.

</summary>

name: String

Name of the parameter.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20params%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20params">Link to this property</a>

<details>

<summary>

worker: Attributes

Outbound worker.

</summary>

entrypoint: String

Entrypoint to invoke on the outbound worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20entrypoint">Link to this property</a>

environment: String

Environment of the outbound worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20environment">Link to this property</a>

service: String

Name of the outbound worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20service">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound">Link to this property</a>

class\_name: String

The exported class name of the Durable Object.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20class_name">Link to this property</a>

dispatch\_namespace: String

The dispatch namespace the Durable Object script belongs to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20dispatch_namespace">Link to this property</a>

environment: String

The environment of the script\_name to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20environment">Link to this property</a>

namespace\_id: String

Namespace identifier tag.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20namespace_id">Link to this property</a>

script\_name: String

The script where the Durable Object is defined, if it is external to this Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20script_name">Link to this property</a>

old\_name: String

The old name of the inherited binding. If set, the binding will be renamed from <code>old_name</code> to <code>name</code> in the new version. If not set, the binding will keep the same name between versions.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20old_name">Link to this property</a>

version\_id: String

Identifier for the version to inherit the binding from, which can be the version ID or the literal “latest” to inherit from the latest version. Defaults to inheriting the binding from the latest version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20version_id">Link to this property</a>

json: JSON

JSON data to use.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20json">Link to this property</a>

certificate\_id: String

Identifier of the certificate to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20certificate_id">Link to this property</a>

text: String

The text value to use.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20text">Link to this property</a>

pipeline: String

Name of the Pipeline to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20pipeline">Link to this property</a>

stream: String

ID of a K2 stream owned by the account deploying the Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20stream">Link to this property</a>

queue\_name: String

Name of the Queue to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20queue_name">Link to this property</a>

<details>

<summary>

simple: Attributes

The rate limit configuration.

</summary>

limit: Float64

The limit (requests per period).

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20limit">Link to this property</a>

period: Int64

The period in seconds.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20period">Link to this property</a>

mitigation\_timeout: Int64

Duration in seconds to apply the mitigation action after the rate limit is exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400. Must be greater than or equal to the period when non-zero.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20mitigation_timeout">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple">Link to this property</a>

bucket\_name: String

R2 bucket to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20bucket_name">Link to this property</a>

jurisdiction: String

The <a href="https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions">jurisdiction</a> of the R2 bucket.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20jurisdiction">Link to this property</a>

allowed\_destination\_addresses: List\[String]

List of allowed destination addresses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20allowed_destination_addresses">Link to this property</a>

allowed\_sender\_addresses: List\[String]

List of allowed sender addresses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20allowed_sender_addresses">Link to this property</a>

destination\_address: String

Destination address for the email.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20destination_address">Link to this property</a>

service: String

Name of Worker to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20service">Link to this property</a>

entrypoint: String

Entrypoint to invoke on the target Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20entrypoint">Link to this property</a>

index\_name: String

Name of the Vectorize index to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20index_name">Link to this property</a>

secret\_name: String

Name of the secret in the store.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20secret_name">Link to this property</a>

store\_id: String

ID of the store containing the secret.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20store_id">Link to this property</a>

app\_id: String

ID of the Flagship app to bind to for feature flag evaluation.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20app_id">Link to this property</a>

algorithm: JSON

Algorithm-specific key parameters. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm">Learn more</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20algorithm">Link to this property</a>

format: String

Data format of the key. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format">Learn more</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20format">Link to this property</a>

usages: Set\[String]

Allowed operations with the key. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages">Learn more</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20usages">Link to this property</a>

key\_base64: String

Base64-encoded key data. Required if <code>format</code> is “raw”, “pkcs8”, or “spki”.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20key_base64">Link to this property</a>

key\_jwk: JSON

Key data in <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key">JSON Web Key</a> format. Required if <code>format</code> is “jwk”.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20key_jwk">Link to this property</a>

workflow\_name: String

Name of the Workflow to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20workflow_name">Link to this property</a>

service\_id: String

Identifier of the VPC service to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20service_id">Link to this property</a>

identity: String

Enables Gateway identity for the binding. Requires network\_id to be “cf1:network” and cannot be combined with tunnel\_id.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20identity">Link to this property</a>

network\_id: String

Identifier of the network to bind to. Only “cf1:network” is currently supported. Mutually exclusive with tunnel\_id.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20network_id">Link to this property</a>

tunnel\_id: String

UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network\_id.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20tunnel_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20bindings>)

<details>

<summary>

cache\_options: Attributes

Global CacheW configuration for the Worker. When caching is on, the platform provisions a <code>cloudflare.app</code> zone for the Worker. A <code>type: worker</code> entry in the <code>exports</code> map can override this value for a single entrypoint.

</summary>

enabled: Bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20enabled">Link to this property</a>

cross\_version\_cache: Bool

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20cross_version_cache">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20cache_options>)

<details>

<summary>

containers: Set\[Attributes]

List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.

</summary>

class\_name: String

Select which Durable Object class should get this container attached.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20containers%20%3E%20(attribute)%20class_name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20containers>)

<details>

<summary>

exports: Map\[Attributes]

Declarative exports for the version, including Durable Object classes (with their <code>storage</code> backend) and named Worker entrypoints. On reads, tombstoned lifecycle entries are omitted, so only live exports (<code>created</code> and <code>expecting-transfer</code>) are returned. <code>exports</code> and <code>migrations</code> are mutually exclusive on upload.

</summary>

type: String

Marks this entry as a Worker entrypoint export.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20type">Link to this property</a>

<details>

<summary>

cache: Attributes

Cache override for this entrypoint. Overrides the Worker’s global <code>cache_options.enabled</code> for this entrypoint only.

</summary>

enabled: Bool

Whether caching is enabled for this entrypoint.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache">Link to this property</a>

state: String

Live export. May be omitted; defaults to <code>created</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20state">Link to this property</a>

storage: String

Durable Object storage backend. <code>sqlite</code> is the recommended (and only) backend for new namespaces. <code>legacy-kv</code> is accepted only for a class whose namespace already exists as KV-backed; the <code>exports</code> flow never provisions a new <code>legacy-kv</code> namespace.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20storage">Link to this property</a>

container: String

Name of the container (declared in the upload’s <code>metadata.containers</code>) that backs this Durable Object. When set, the namespace is container-enabled. Valid only on live entries.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20container">Link to this property</a>

renamed\_to: String

The destination class name. Must differ from the source class (the map key) and must be declared as a live (<code>created</code>) entry in the same <code>exports</code> map. Write-only: never present in GET responses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20renamed_to">Link to this property</a>

transferred\_to: String

The destination script name. Must be in the same account and the same dispatch-namespace context (or both non-dispatch). Cross-dispatch-namespace transfers are rejected. Write-only: never present in GET responses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transferred_to">Link to this property</a>

transfer\_from: String

The source script name to receive the namespace from. Must be in the same account and dispatch-namespace context. Present on reads for <code>expecting-transfer</code> entries.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transfer_from">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports>)

<details>

<summary>

exports\_reconciliation: Attributes

Summary of the declarative exports reconciliation that ran on this upload. Populated only when the uploaded metadata included an <code>exports</code> block. Durable Object entries drive reconciliation; <code>type: worker</code> entries do not contribute to this summary.

</summary>

created: List\[String]

Class names for which a new namespace was provisioned.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20created">Link to this property</a>

deleted: List\[String]

Class names whose namespace was deleted by a <code>deleted</code> tombstone.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20deleted">Link to this property</a>

<details>

<summary>

info: List\[Attributes]

Non-blocking info entries (stale tombstones, tombstone applied with class still in code). See <code>exports_reconciliation_info</code>.

</summary>

class: String

The class name the info entry is about.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20class">Link to this property</a>

message: String

Human-readable explanation.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20message">Link to this property</a>

scenario: String

Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing <code>message</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20scenario">Link to this property</a>

namespace\_id: String

The provisioned namespace the entry relates to, when applicable.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20namespace_id">Link to this property</a>

referencing\_scripts: List\[String]

Other Workers in the account that still bind to the affected class. Advisory: while non-empty the tombstone is not yet safe to remove — redeploy these Workers with bindings re-pointed first.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20referencing_scripts">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info">Link to this property</a>

removable\_entries: List\[String]

Source class names whose tombstone entry is now stale and safe to delete from <code>exports</code> (no remaining referencing scripts).

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20removable_entries">Link to this property</a>

<details>

<summary>

renamed: List\[Attributes]

Applied <code>renamed</code> tombstones.

</summary>

from: String

The original (source) class name.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed%20%3E%20(attribute)%20from">Link to this property</a>

to: String

The new class name (<code>renamed_to</code>).

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed">Link to this property</a>

<details>

<summary>

transfer\_pending: List\[Attributes]

Phase-1 transfer hints recorded on the target side.

</summary>

class: String

The target-side class name awaiting transfer.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending%20%3E%20(attribute)%20class">Link to this property</a>

from: String

The source script the namespace will be transferred from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending%20%3E%20(attribute)%20from">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending">Link to this property</a>

<details>

<summary>

transferred: List\[Attributes]

Committed <code>transferred</code> tombstones (phase-2).

</summary>

class: String

The source class name that was transferred.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20class">Link to this property</a>

phase: String

The transfer phase. Currently always <code>committed</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20phase">Link to this property</a>

to: String

The destination script that now owns the namespace.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred">Link to this property</a>

updated: List\[String]

Class names whose provisioned namespace was mutated in place.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20updated">Link to this property</a>

<details>

<summary>

warnings: List\[Attributes]

Non-blocking warnings. See <code>exports_reconciliation_warning</code>.

</summary>

class: String

The class name the warning is about.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20class">Link to this property</a>

message: String

Human-readable explanation of the warning.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20message">Link to this property</a>

scenario: String

Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing <code>message</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20scenario">Link to this property</a>

namespace\_id: String

The provisioned namespace the warning relates to, when applicable.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20exports_reconciliation>)

<details>

<summary>

limits: Attributes

Resource limits enforced at runtime.

</summary>

cpu\_ms: Int64

CPU time limit in milliseconds.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20cpu_ms">Link to this property</a>

subrequests: Int64

Subrequest limit per request.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20subrequests">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20limits>)

<details>

<summary>

migrations: Attributes

Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.

</summary>

deleted\_classes: List\[String]

A list of classes to delete Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20deleted_classes">Link to this property</a>

new\_classes: List\[String]

A list of classes to create Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_classes">Link to this property</a>

new\_sqlite\_classes: List\[String]

A list of classes to create Durable Object namespaces with SQLite from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_sqlite_classes">Link to this property</a>

new\_tag: String

Tag to set as the latest migration tag.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_tag">Link to this property</a>

old\_tag: String

Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20old_tag">Link to this property</a>

<details>

<summary>

renamed\_classes: List\[Attributes]

A list of classes with Durable Object namespaces that were renamed.

</summary>

from: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20from">Link to this property</a>

to: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes">Link to this property</a>

<details>

<summary>

transferred\_classes: List\[Attributes]

A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.

</summary>

from: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from">Link to this property</a>

from\_script: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from_script">Link to this property</a>

to: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes">Link to this property</a>

<details>

<summary>

steps: List\[Attributes]

Migrations to apply in order.

</summary>

deleted\_classes: List\[String]

A list of classes to delete Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20deleted_classes">Link to this property</a>

new\_classes: List\[String]

A list of classes to create Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20new_classes">Link to this property</a>

new\_sqlite\_classes: List\[String]

A list of classes to create Durable Object namespaces with SQLite from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20new_sqlite_classes">Link to this property</a>

<details>

<summary>

renamed\_classes: List\[Attributes]

A list of classes with Durable Object namespaces that were renamed.

</summary>

from: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20from">Link to this property</a>

to: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes">Link to this property</a>

<details>

<summary>

transferred\_classes: List\[Attributes]

A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.

</summary>

from: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from">Link to this property</a>

from\_script: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from_script">Link to this property</a>

to: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20migrations>)

<details>

<summary>

modules: Set\[Attributes]

Code, sourcemaps, and other content used at runtime.

This includes <a href="https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers"><code>_headers</code></a> and <a href="https://developers.cloudflare.com/workers/static-assets/redirects/"><code>_redirects</code></a> files used to configure <a href="https://developers.cloudflare.com/workers/static-assets/">Static Assets</a>. <code>_headers</code> and <code>_redirects</code> files should be included as modules named <code>_headers</code> and <code>_redirects</code> with content type <code>text/plain</code>.

</summary>

content\_base64: String

The base64-encoded module content.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modules%20%3E%20(attribute)%20content_base64">Link to this property</a>

content\_type: String

The content type of the module.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modules%20%3E%20(attribute)%20content_type">Link to this property</a>

name: String

The name of the module.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modules%20%3E%20(attribute)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20modules>)

<details>

<summary>

package\_dependencies: List\[Attributes]

The list of npm packages that were installed and used when this Worker version was built.

</summary>

installed\_version: String

The exact version that was resolved and installed by the package manager.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20installed_version">Link to this property</a>

name: String

The npm package name.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20name">Link to this property</a>

package\_json\_version: String

The version constraint as written in package.json.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20package_json_version">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20package_dependencies>)

<details>

<summary>

placement: Attributes

Configuration for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.

</summary>

mode: String

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20mode">Link to this property</a>

region: String

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host and port for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20host">Link to this property</a>

<details>

<summary>

target: List\[Attributes]

Array of placement targets (currently limited to single target).

</summary>

region: String

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host:port for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20placement>)

### cloudflare\_worker\_version

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_worker_version" "example_worker_version" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  worker_id = "worker_id"
  version_id = "version_id"
  include = "modules"
}
```

#### data cloudflare\_worker\_versions

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

worker\_id: String

Identifier for the Worker, which can be ID or name.

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20worker_id>)

##### optional Expand Collapse

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Version identifier.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

created\_on: Time

When the version was created.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created_on">Link to this property</a>

number: Int64

The integer version number, starting from one.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20number">Link to this property</a>

urls: List\[String]

All routable URLs that always point to this version. Does not include alias URLs, since aliases can be updated to point to a different version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20urls">Link to this property</a>

<details>

<summary>

annotations: Attributes

Metadata about the version.

</summary>

workers\_message: String

Human-readable message about the version. Truncated to 1000 bytes if longer.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_message">Link to this property</a>

workers\_tag: String

User-provided identifier for the version. Maximum 100 bytes.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_tag">Link to this property</a>

workers\_triggered\_by: String

Operation that triggered the creation of the version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_triggered_by">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20annotations">Link to this property</a>

<details>

<summary>

assets: Attributes

Configuration for assets within a Worker.

<a href="https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers"><code>_headers</code></a> and <a href="https://developers.cloudflare.com/workers/static-assets/redirects/"><code>_redirects</code></a> files should be included as modules named <code>_headers</code> and <code>_redirects</code> with content type <code>text/plain</code>.

</summary>

<details>

<summary>

config: Attributes

Configuration for assets within a Worker.

</summary>

base\_path: String

The public URL path prefix under which assets are served. A null request value resets it to <code>/</code>; responses represent the root as <code>/</code>. All versions in a gradual deployment must use the same canonical value. To change it, first deploy the version containing the change at 100%.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20base_path">Link to this property</a>

html\_handling: String

Determines the redirects and rewrites of requests for HTML content.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20html_handling">Link to this property</a>

not\_found\_handling: String

Determines the response when a request does not match a static asset, and there is no Worker script.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20not_found_handling">Link to this property</a>

run\_worker\_first: List\[String]

Contains a list path rules to control routing to either the Worker or assets. Glob (\*) and negative (!) rules are supported. Rules must start with either ’/’ or ’!/’. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20run_worker_first">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config">Link to this property</a>

jwt: String

Token provided upon successful upload of all files from a registered manifest.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20jwt">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20assets">Link to this property</a>

author\_email: String

Email of the user who created the version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20author_email">Link to this property</a>

author\_id: String

Identifier of the user who created the version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20author_id">Link to this property</a>

<details>

<summary>

bindings: List\[Attributes]

List of bindings attached to a Worker. You can find more about bindings on our docs: <a href="https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings">https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings</a>.

</summary>

name: String

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20name">Link to this property</a>

type: String

The kind of resource that the binding provides.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20type">Link to this property</a>

instance\_name: String

The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20instance_name">Link to this property</a>

namespace: String

The namespace the instance belongs to. Defaults to “default” if omitted. Customers who don’t use namespaces can simply omit this field.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20namespace">Link to this property</a>

dataset: String

The name of the dataset to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20dataset">Link to this property</a>

database\_id: String

Identifier of the D1 database to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20database_id">Link to this property</a>

id: String

Identifier of the D1 database to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20id">Link to this property</a>

part: String

The name of the file containing the data content. Only accepted for <code>service worker syntax</code> Workers.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20part">Link to this property</a>

<details>

<summary>

outbound: Attributes

Outbound worker.

</summary>

<details>

<summary>

params: List\[Attributes]

Pass information from the Dispatch Worker to the Outbound Worker through the parameters.

</summary>

name: String

Name of the parameter.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20params%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20params">Link to this property</a>

<details>

<summary>

worker: Attributes

Outbound worker.

</summary>

entrypoint: String

Entrypoint to invoke on the outbound worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20entrypoint">Link to this property</a>

environment: String

Environment of the outbound worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20environment">Link to this property</a>

service: String

Name of the outbound worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20service">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound">Link to this property</a>

class\_name: String

The exported class name of the Durable Object.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20class_name">Link to this property</a>

dispatch\_namespace: String

The dispatch namespace the Durable Object script belongs to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20dispatch_namespace">Link to this property</a>

environment: String

The environment of the script\_name to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20environment">Link to this property</a>

namespace\_id: String

Namespace identifier tag.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20namespace_id">Link to this property</a>

script\_name: String

The script where the Durable Object is defined, if it is external to this Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20script_name">Link to this property</a>

old\_name: String

The old name of the inherited binding. If set, the binding will be renamed from <code>old_name</code> to <code>name</code> in the new version. If not set, the binding will keep the same name between versions.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20old_name">Link to this property</a>

version\_id: String

Identifier for the version to inherit the binding from, which can be the version ID or the literal “latest” to inherit from the latest version. Defaults to inheriting the binding from the latest version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20version_id">Link to this property</a>

json: JSON

JSON data to use.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20json">Link to this property</a>

certificate\_id: String

Identifier of the certificate to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20certificate_id">Link to this property</a>

text: String

The text value to use.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20text">Link to this property</a>

pipeline: String

Name of the Pipeline to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20pipeline">Link to this property</a>

stream: String

ID of a K2 stream owned by the account deploying the Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20stream">Link to this property</a>

queue\_name: String

Name of the Queue to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20queue_name">Link to this property</a>

<details>

<summary>

simple: Attributes

The rate limit configuration.

</summary>

limit: Float64

The limit (requests per period).

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20limit">Link to this property</a>

period: Int64

The period in seconds.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20period">Link to this property</a>

mitigation\_timeout: Int64

Duration in seconds to apply the mitigation action after the rate limit is exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400. Must be greater than or equal to the period when non-zero.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20mitigation_timeout">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple">Link to this property</a>

bucket\_name: String

R2 bucket to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20bucket_name">Link to this property</a>

jurisdiction: String

The <a href="https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions">jurisdiction</a> of the R2 bucket.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20jurisdiction">Link to this property</a>

allowed\_destination\_addresses: List\[String]

List of allowed destination addresses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20allowed_destination_addresses">Link to this property</a>

allowed\_sender\_addresses: List\[String]

List of allowed sender addresses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20allowed_sender_addresses">Link to this property</a>

destination\_address: String

Destination address for the email.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20destination_address">Link to this property</a>

service: String

Name of Worker to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20service">Link to this property</a>

entrypoint: String

Entrypoint to invoke on the target Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20entrypoint">Link to this property</a>

index\_name: String

Name of the Vectorize index to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20index_name">Link to this property</a>

secret\_name: String

Name of the secret in the store.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20secret_name">Link to this property</a>

store\_id: String

ID of the store containing the secret.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20store_id">Link to this property</a>

app\_id: String

ID of the Flagship app to bind to for feature flag evaluation.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20app_id">Link to this property</a>

algorithm: JSON

Algorithm-specific key parameters. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm">Learn more</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20algorithm">Link to this property</a>

format: String

Data format of the key. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format">Learn more</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20format">Link to this property</a>

usages: Set\[String]

Allowed operations with the key. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages">Learn more</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20usages">Link to this property</a>

key\_base64: String

Base64-encoded key data. Required if <code>format</code> is “raw”, “pkcs8”, or “spki”.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20key_base64">Link to this property</a>

key\_jwk: JSON

Key data in <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key">JSON Web Key</a> format. Required if <code>format</code> is “jwk”.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20key_jwk">Link to this property</a>

workflow\_name: String

Name of the Workflow to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20workflow_name">Link to this property</a>

service\_id: String

Identifier of the VPC service to bind to.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20service_id">Link to this property</a>

identity: String

Enables Gateway identity for the binding. Requires network\_id to be “cf1:network” and cannot be combined with tunnel\_id.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20identity">Link to this property</a>

network\_id: String

Identifier of the network to bind to. Only “cf1:network” is currently supported. Mutually exclusive with tunnel\_id.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20network_id">Link to this property</a>

tunnel\_id: String

UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network\_id.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20tunnel_id">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20bindings">Link to this property</a>

<details>

<summary>

cache\_options: Attributes

Global CacheW configuration for the Worker. When caching is on, the platform provisions a <code>cloudflare.app</code> zone for the Worker. A <code>type: worker</code> entry in the <code>exports</code> map can override this value for a single entrypoint.

</summary>

enabled: Bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20enabled">Link to this property</a>

cross\_version\_cache: Bool

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20cross_version_cache">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20cache_options">Link to this property</a>

compatibility\_date: String

Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20compatibility_date">Link to this property</a>

compatibility\_flags: Set\[String]

Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a <code>compatibility_date</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20compatibility_flags">Link to this property</a>

<details>

<summary>

containers: Set\[Attributes]

List of containers attached to a Worker. Containers can only be attached to Durable Object classes of this Worker script.

</summary>

class\_name: String

Select which Durable Object class should get this container attached.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20containers%20%3E%20(attribute)%20class_name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20containers">Link to this property</a>

<details>

<summary>

exports: Map\[Attributes]

Declarative exports for the version, including Durable Object classes (with their <code>storage</code> backend) and named Worker entrypoints. On reads, tombstoned lifecycle entries are omitted, so only live exports (<code>created</code> and <code>expecting-transfer</code>) are returned. <code>exports</code> and <code>migrations</code> are mutually exclusive on upload.

</summary>

type: String

Marks this entry as a Worker entrypoint export.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20type">Link to this property</a>

<details>

<summary>

cache: Attributes

Cache override for this entrypoint. Overrides the Worker’s global <code>cache_options.enabled</code> for this entrypoint only.

</summary>

enabled: Bool

Whether caching is enabled for this entrypoint.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache">Link to this property</a>

state: String

Live export. May be omitted; defaults to <code>created</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20state">Link to this property</a>

storage: String

Durable Object storage backend. <code>sqlite</code> is the recommended (and only) backend for new namespaces. <code>legacy-kv</code> is accepted only for a class whose namespace already exists as KV-backed; the <code>exports</code> flow never provisions a new <code>legacy-kv</code> namespace.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20storage">Link to this property</a>

container: String

Name of the container (declared in the upload’s <code>metadata.containers</code>) that backs this Durable Object. When set, the namespace is container-enabled. Valid only on live entries.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20container">Link to this property</a>

renamed\_to: String

The destination class name. Must differ from the source class (the map key) and must be declared as a live (<code>created</code>) entry in the same <code>exports</code> map. Write-only: never present in GET responses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20renamed_to">Link to this property</a>

transferred\_to: String

The destination script name. Must be in the same account and the same dispatch-namespace context (or both non-dispatch). Cross-dispatch-namespace transfers are rejected. Write-only: never present in GET responses.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transferred_to">Link to this property</a>

transfer\_from: String

The source script name to receive the namespace from. Must be in the same account and dispatch-namespace context. Present on reads for <code>expecting-transfer</code> entries.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transfer_from">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports">Link to this property</a>

<details>

<summary>

exports\_reconciliation: Attributes

Summary of the declarative exports reconciliation that ran on this upload. Populated only when the uploaded metadata included an <code>exports</code> block. Durable Object entries drive reconciliation; <code>type: worker</code> entries do not contribute to this summary.

</summary>

created: List\[String]

Class names for which a new namespace was provisioned.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20created">Link to this property</a>

deleted: List\[String]

Class names whose namespace was deleted by a <code>deleted</code> tombstone.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20deleted">Link to this property</a>

<details>

<summary>

info: List\[Attributes]

Non-blocking info entries (stale tombstones, tombstone applied with class still in code). See <code>exports_reconciliation_info</code>.

</summary>

class: String

The class name the info entry is about.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20class">Link to this property</a>

message: String

Human-readable explanation.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20message">Link to this property</a>

scenario: String

Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing <code>message</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20scenario">Link to this property</a>

namespace\_id: String

The provisioned namespace the entry relates to, when applicable.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20namespace_id">Link to this property</a>

referencing\_scripts: List\[String]

Other Workers in the account that still bind to the affected class. Advisory: while non-empty the tombstone is not yet safe to remove — redeploy these Workers with bindings re-pointed first.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20referencing_scripts">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info">Link to this property</a>

removable\_entries: List\[String]

Source class names whose tombstone entry is now stale and safe to delete from <code>exports</code> (no remaining referencing scripts).

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20removable_entries">Link to this property</a>

<details>

<summary>

renamed: List\[Attributes]

Applied <code>renamed</code> tombstones.

</summary>

from: String

The original (source) class name.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed%20%3E%20(attribute)%20from">Link to this property</a>

to: String

The new class name (<code>renamed_to</code>).

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed">Link to this property</a>

<details>

<summary>

transfer\_pending: List\[Attributes]

Phase-1 transfer hints recorded on the target side.

</summary>

class: String

The target-side class name awaiting transfer.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending%20%3E%20(attribute)%20class">Link to this property</a>

from: String

The source script the namespace will be transferred from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending%20%3E%20(attribute)%20from">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending">Link to this property</a>

<details>

<summary>

transferred: List\[Attributes]

Committed <code>transferred</code> tombstones (phase-2).

</summary>

class: String

The source class name that was transferred.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20class">Link to this property</a>

phase: String

The transfer phase. Currently always <code>committed</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20phase">Link to this property</a>

to: String

The destination script that now owns the namespace.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred">Link to this property</a>

updated: List\[String]

Class names whose provisioned namespace was mutated in place.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20updated">Link to this property</a>

<details>

<summary>

warnings: List\[Attributes]

Non-blocking warnings. See <code>exports_reconciliation_warning</code>.

</summary>

class: String

The class name the warning is about.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20class">Link to this property</a>

message: String

Human-readable explanation of the warning.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20message">Link to this property</a>

scenario: String

Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing <code>message</code>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20scenario">Link to this property</a>

namespace\_id: String

The provisioned namespace the warning relates to, when applicable.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports_reconciliation">Link to this property</a>

<details>

<summary>

limits: Attributes

Resource limits enforced at runtime.

</summary>

cpu\_ms: Int64

CPU time limit in milliseconds.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20cpu_ms">Link to this property</a>

subrequests: Int64

Subrequest limit per request.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20subrequests">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20limits">Link to this property</a>

main\_module: String

The name of the main module in the <code>modules</code> array (e.g. the name of the module that exports a <code>fetch</code> handler).

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20main_module">Link to this property</a>

migration\_tag: String

Durable Object migration tag. Set when the version is deployed. Omitted if the version has not been deployed or the Worker does not use Durable Objects.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migration_tag">Link to this property</a>

<details>

<summary>

migrations: Attributes

Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed.

</summary>

deleted\_classes: List\[String]

A list of classes to delete Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20deleted_classes">Link to this property</a>

new\_classes: List\[String]

A list of classes to create Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_classes">Link to this property</a>

new\_sqlite\_classes: List\[String]

A list of classes to create Durable Object namespaces with SQLite from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_sqlite_classes">Link to this property</a>

new\_tag: String

Tag to set as the latest migration tag.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_tag">Link to this property</a>

old\_tag: String

Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20old_tag">Link to this property</a>

<details>

<summary>

renamed\_classes: List\[Attributes]

A list of classes with Durable Object namespaces that were renamed.

</summary>

from: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20from">Link to this property</a>

to: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes">Link to this property</a>

<details>

<summary>

transferred\_classes: List\[Attributes]

A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.

</summary>

from: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from">Link to this property</a>

from\_script: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from_script">Link to this property</a>

to: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes">Link to this property</a>

<details>

<summary>

steps: List\[Attributes]

Migrations to apply in order.

</summary>

deleted\_classes: List\[String]

A list of classes to delete Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20deleted_classes">Link to this property</a>

new\_classes: List\[String]

A list of classes to create Durable Object namespaces from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20new_classes">Link to this property</a>

new\_sqlite\_classes: List\[String]

A list of classes to create Durable Object namespaces with SQLite from.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20new_sqlite_classes">Link to this property</a>

<details>

<summary>

renamed\_classes: List\[Attributes]

A list of classes with Durable Object namespaces that were renamed.

</summary>

from: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20from">Link to this property</a>

to: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes">Link to this property</a>

<details>

<summary>

transferred\_classes: List\[Attributes]

A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.

</summary>

from: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from">Link to this property</a>

from\_script: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from_script">Link to this property</a>

to: String

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migrations">Link to this property</a>

<details>

<summary>

modules: Set\[Attributes]

Code, sourcemaps, and other content used at runtime.

This includes <a href="https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers"><code>_headers</code></a> and <a href="https://developers.cloudflare.com/workers/static-assets/redirects/"><code>_redirects</code></a> files used to configure <a href="https://developers.cloudflare.com/workers/static-assets/">Static Assets</a>. <code>_headers</code> and <code>_redirects</code> files should be included as modules named <code>_headers</code> and <code>_redirects</code> with content type <code>text/plain</code>.

</summary>

content\_base64: String

The base64-encoded module content.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modules%20%3E%20(attribute)%20content_base64">Link to this property</a>

content\_type: String

The content type of the module.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modules%20%3E%20(attribute)%20content_type">Link to this property</a>

name: String

The name of the module.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modules%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modules">Link to this property</a>

<details>

<summary>

package\_dependencies: List\[Attributes]

The list of npm packages that were installed and used when this Worker version was built.

</summary>

installed\_version: String

The exact version that was resolved and installed by the package manager.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20installed_version">Link to this property</a>

name: String

The npm package name.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20name">Link to this property</a>

package\_json\_version: String

The version constraint as written in package.json.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20package_json_version">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20package_dependencies">Link to this property</a>

<details>

<summary>

placement: Attributes

Configuration for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.

</summary>

mode: String

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20mode">Link to this property</a>

region: String

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host and port for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20host">Link to this property</a>

<details>

<summary>

target: List\[Attributes]

Array of placement targets (currently limited to single target).

</summary>

region: String

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host:port for targeted placement.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target">Link to this property</a>

</details>

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement">Link to this property</a>

source: String

The client used to create the version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20source">Link to this property</a>

startup\_time\_ms: Int64

Time in milliseconds spent on <a href="https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time">Worker startup</a>.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20startup_time_ms">Link to this property</a>

Deprecatedusage\_model: String

Usage model for the version.

<a href="#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20usage_model">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.beta.workers.versions%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_worker\_versions

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_worker_versions" "example_worker_versions" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  worker_id = "worker_id"
}
```

#### WorkersRoutes

#### resource cloudflare\_workers\_route

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

pattern: String

Pattern to match incoming requests against. [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20pattern>)

##### optional Expand Collapse

script?: String

Name of the script to run if the route matches.

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20script>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

### cloudflare\_workers\_route

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_workers_route" "example_workers_route" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  pattern = "example.com/*"
  script = "my-workers-script"
}
```

#### data cloudflare\_workers\_route

##### required Expand Collapse

route\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20route_id>)

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

##### computed Expand Collapse

id: String

Identifier.

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

pattern: String

Pattern to match incoming requests against. [Learn more](https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior).

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20pattern>)

script: String

Name of the script to run if the route matches.

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20script>)

### cloudflare\_workers\_route

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers_route" "example_workers_route" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  route_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### data cloudflare\_workers\_routes

##### required Expand Collapse

zone\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20zone_id>)

##### optional Expand Collapse

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Identifier.

<a href="#(resource)%20workers.routes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

pattern: String

Pattern to match incoming requests against. <a href="https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior">Learn more</a>.

<a href="#(resource)%20workers.routes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20pattern">Link to this property</a>

script: String

Name of the script to run if the route matches.

<a href="#(resource)%20workers.routes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20script">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.routes%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_workers\_routes

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers_routes" "example_workers_routes" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
```

#### WorkersScripts

#### resource cloudflare\_workers\_script

##### required Expand Collapse

script\_name: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20script_name>)

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

<details>

<summary>

metadata: Attributes

JSON-encoded metadata about the uploaded parts and Worker configuration.

</summary>

<details>

<summary>

annotations?: Attributes

Annotations for the version created by this upload.

</summary>

workers\_message?: String

Human-readable message about the version. Truncated to 1000 bytes if longer.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_message">Link to this property</a>

workers\_tag?: String

User-provided identifier for the version. Maximum 100 bytes.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_tag">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20annotations">Link to this property</a>

<details>

<summary>

assets?: Attributes

Configuration for assets within a Worker.

</summary>

<details>

<summary>

config?: Attributes

Configuration for assets within a Worker.

</summary>

headers?: String

The contents of a \_headers file (used to attach custom headers on asset responses).

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20headers">Link to this property</a>

redirects?: String

The contents of a \_redirects file (used to apply redirects or proxy paths ahead of asset serving).

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20redirects">Link to this property</a>

base\_path?: String

The public URL path prefix under which assets are served. A null request value resets it to <code>/</code>; responses represent the root as <code>/</code>. All versions in a gradual deployment must use the same canonical value. To change it, first deploy the version containing the change at 100%.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20base_path">Link to this property</a>

html\_handling?: String

Determines the redirects and rewrites of requests for HTML content.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20html_handling">Link to this property</a>

not\_found\_handling?: String

Determines the response when a request does not match a static asset, and there is no Worker script.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20not_found_handling">Link to this property</a>

run\_worker\_first?: List\[String]

Contains a list path rules to control routing to either the Worker or assets. Glob (\*) and negative (!) rules are supported. Rules must start with either ’/’ or ’!/’. At least one non-negative rule must be provided, and negative rules have higher precedence than non-negative rules.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20run_worker_first">Link to this property</a>

Deprecatedserve\_directly?: Bool

When true and the incoming request matches an asset, that will be served instead of invoking the Worker script. When false, requests will always invoke the Worker script.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config%20%3E%20(attribute)%20serve_directly">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20config">Link to this property</a>

jwt?: String

Token provided upon successful upload of all files from a registered manifest.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20assets%20%3E%20(attribute)%20jwt">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20assets">Link to this property</a>

<details>

<summary>

bindings?: List\[Attributes]

List of bindings attached to a Worker. You can find more about bindings on our docs: <a href="https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings">https://developers.cloudflare.com/workers/configuration/multipart-upload-metadata/#bindings</a>.

</summary>

name: String

A JavaScript variable name for the binding.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20name">Link to this property</a>

type: String

The kind of resource that the binding provides.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20type">Link to this property</a>

instance\_name?: String

The user-chosen instance name. Must exist at deploy time. The worker can search, chat, update, and manage items/jobs on this instance.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20instance_name">Link to this property</a>

namespace?: String

The namespace the instance belongs to. Defaults to “default” if omitted. Customers who don’t use namespaces can simply omit this field.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20namespace">Link to this property</a>

dataset?: String

The name of the dataset to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20dataset">Link to this property</a>

database\_id?: String

Identifier of the D1 database to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20database_id">Link to this property</a>

id?: String

Identifier of the D1 database to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20id">Link to this property</a>

part?: String

The name of the file containing the data content. Only accepted for <code>service worker syntax</code> Workers.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20part">Link to this property</a>

<details>

<summary>

outbound?: Attributes

Outbound worker.

</summary>

<details>

<summary>

params?: List\[Attributes]

Pass information from the Dispatch Worker to the Outbound Worker through the parameters.

</summary>

name: String

Name of the parameter.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20params%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20params">Link to this property</a>

<details>

<summary>

worker?: Attributes

Outbound worker.

</summary>

entrypoint?: String

Entrypoint to invoke on the outbound worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20entrypoint">Link to this property</a>

environment?: String

Environment of the outbound worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20environment">Link to this property</a>

service?: String

Name of the outbound worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker%20%3E%20(attribute)%20service">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound%20%3E%20(attribute)%20worker">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20outbound">Link to this property</a>

class\_name?: String

The exported class name of the Durable Object.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20class_name">Link to this property</a>

dispatch\_namespace?: String

The dispatch namespace the Durable Object script belongs to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20dispatch_namespace">Link to this property</a>

environment?: String

The environment of the script\_name to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20environment">Link to this property</a>

namespace\_id?: String

Namespace identifier tag.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20namespace_id">Link to this property</a>

script\_name?: String

The script where the Durable Object is defined, if it is external to this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20script_name">Link to this property</a>

old\_name?: String

The old name of the inherited binding. If set, the binding will be renamed from <code>old_name</code> to <code>name</code> in the new version. If not set, the binding will keep the same name between versions.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20old_name">Link to this property</a>

version\_id?: String

Identifier for the version to inherit the binding from, which can be the version ID or the literal “latest” to inherit from the latest version. Defaults to inheriting the binding from the latest version.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20version_id">Link to this property</a>

json?: JSON

JSON data to use.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20json">Link to this property</a>

certificate\_id?: String

Identifier of the certificate to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20certificate_id">Link to this property</a>

text?: String

The text value to use.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20text">Link to this property</a>

pipeline?: String

Name of the Pipeline to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20pipeline">Link to this property</a>

stream?: String

ID of a K2 stream owned by the account deploying the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20stream">Link to this property</a>

queue\_name?: String

Name of the Queue to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20queue_name">Link to this property</a>

<details>

<summary>

simple?: Attributes

The rate limit configuration.

</summary>

limit: Float64

The limit (requests per period).

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20limit">Link to this property</a>

period: Int64

The period in seconds.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20period">Link to this property</a>

mitigation\_timeout?: Int64

Duration in seconds to apply the mitigation action after the rate limit is exceeded. Valid values are 0 (disabled), 10, or multiples of 60 up to 86400. Must be greater than or equal to the period when non-zero.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple%20%3E%20(attribute)%20mitigation_timeout">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20simple">Link to this property</a>

bucket\_name?: String

R2 bucket to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20bucket_name">Link to this property</a>

jurisdiction?: String

The <a href="https://developers.cloudflare.com/r2/reference/data-location/#jurisdictional-restrictions">jurisdiction</a> of the R2 bucket.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20jurisdiction">Link to this property</a>

allowed\_destination\_addresses?: List\[String]

List of allowed destination addresses.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20allowed_destination_addresses">Link to this property</a>

allowed\_sender\_addresses?: List\[String]

List of allowed sender addresses.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20allowed_sender_addresses">Link to this property</a>

destination\_address?: String

Destination address for the email.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20destination_address">Link to this property</a>

service?: String

Name of Worker to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20service">Link to this property</a>

entrypoint?: String

Entrypoint to invoke on the target Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20entrypoint">Link to this property</a>

index\_name?: String

Name of the Vectorize index to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20index_name">Link to this property</a>

secret\_name?: String

Name of the secret in the store.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20secret_name">Link to this property</a>

store\_id?: String

ID of the store containing the secret.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20store_id">Link to this property</a>

app\_id?: String

ID of the Flagship app to bind to for feature flag evaluation.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20app_id">Link to this property</a>

algorithm?: JSON

Algorithm-specific key parameters. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm">Learn more</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20algorithm">Link to this property</a>

format?: String

Data format of the key. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#format">Learn more</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20format">Link to this property</a>

usages?: Set\[String]

Allowed operations with the key. <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#keyUsages">Learn more</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20usages">Link to this property</a>

key\_base64?: String

Base64-encoded key data. Required if <code>format</code> is “raw”, “pkcs8”, or “spki”.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20key_base64">Link to this property</a>

key\_jwk?: JSON

Key data in <a href="https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#json_web_key">JSON Web Key</a> format. Required if <code>format</code> is “jwk”.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20key_jwk">Link to this property</a>

workflow\_name?: String

Name of the Workflow to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20workflow_name">Link to this property</a>

service\_id?: String

Identifier of the VPC service to bind to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20service_id">Link to this property</a>

identity?: String

Enables Gateway identity for the binding. Requires network\_id to be “cf1:network” and cannot be combined with tunnel\_id.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20identity">Link to this property</a>

network\_id?: String

Identifier of the network to bind to. Only “cf1:network” is currently supported. Mutually exclusive with tunnel\_id.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20network_id">Link to this property</a>

tunnel\_id?: String

UUID of the Cloudflare Tunnel to bind to. Mutually exclusive with network\_id.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings%20%3E%20(attribute)%20tunnel_id">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20bindings">Link to this property</a>

body\_part?: String

Name of the uploaded file that contains the script (e.g. the file adding a listener to the <code>fetch</code> event). Indicates a <code>service worker syntax</code> Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20body_part">Link to this property</a>

<details>

<summary>

cache\_options?: Attributes

Global CacheW configuration for the Worker. When caching is on, the platform provisions a <code>cloudflare.app</code> zone for the Worker. A <code>type: worker</code> entry in the <code>exports</code> map can override this value for a single entrypoint.

</summary>

enabled?: Bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20enabled">Link to this property</a>

cross\_version\_cache?: Bool

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20cross_version_cache">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20cache_options">Link to this property</a>

compatibility\_date?: String

Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20compatibility_date">Link to this property</a>

compatibility\_flags?: Set\[String]

Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a <code>compatibility_date</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20compatibility_flags">Link to this property</a>

<details>

<summary>

exports?: Map\[Attributes]

Declarative exports for the Worker. Worker entrypoint entries (<code>type: worker</code>) carry cache configuration for that entrypoint.

</summary>

type: String

Marks this entry as a Worker entrypoint export.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20type">Link to this property</a>

<details>

<summary>

cache?: Attributes

Cache override for this entrypoint. Overrides the Worker’s global <code>cache_options.enabled</code> for this entrypoint only.

</summary>

enabled: Bool

Whether caching is enabled for this entrypoint.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache">Link to this property</a>

state?: String

Live export. May be omitted; defaults to <code>created</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20state">Link to this property</a>

storage?: String

Durable Object storage backend. <code>sqlite</code> is the recommended (and only) backend for new namespaces. <code>legacy-kv</code> is accepted only for a class whose namespace already exists as KV-backed; the <code>exports</code> flow never provisions a new <code>legacy-kv</code> namespace.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20storage">Link to this property</a>

container?: String

Name of the container (declared in the upload’s <code>metadata.containers</code>) that backs this Durable Object. When set, the namespace is container-enabled. Valid only on live entries.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20container">Link to this property</a>

renamed\_to?: String

The destination class name. Must differ from the source class (the map key) and must be declared as a live (<code>created</code>) entry in the same <code>exports</code> map. Write-only: never present in GET responses.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20renamed_to">Link to this property</a>

transferred\_to?: String

The destination script name. Must be in the same account and the same dispatch-namespace context (or both non-dispatch). Cross-dispatch-namespace transfers are rejected. Write-only: never present in GET responses.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transferred_to">Link to this property</a>

transfer\_from?: String

The source script name to receive the namespace from. Must be in the same account and dispatch-namespace context. Present on reads for <code>expecting-transfer</code> entries.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transfer_from">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports">Link to this property</a>

<details>

<summary>

exports\_reconciliation: Attributes

Summary of the declarative exports reconciliation that ran on this upload. Populated only when the uploaded metadata included an <code>exports</code> block. Durable Object entries drive reconciliation; <code>type: worker</code> entries do not contribute to this summary.

</summary>

created: List\[String]

Class names for which a new namespace was provisioned.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20created">Link to this property</a>

deleted: List\[String]

Class names whose namespace was deleted by a <code>deleted</code> tombstone.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20deleted">Link to this property</a>

<details>

<summary>

info: List\[Attributes]

Non-blocking info entries (stale tombstones, tombstone applied with class still in code). See <code>exports_reconciliation_info</code>.

</summary>

class: String

The class name the info entry is about.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20class">Link to this property</a>

message: String

Human-readable explanation.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20message">Link to this property</a>

scenario: String

Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing <code>message</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20scenario">Link to this property</a>

namespace\_id: String

The provisioned namespace the entry relates to, when applicable.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20namespace_id">Link to this property</a>

referencing\_scripts: List\[String]

Other Workers in the account that still bind to the affected class. Advisory: while non-empty the tombstone is not yet safe to remove — redeploy these Workers with bindings re-pointed first.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info%20%3E%20(attribute)%20referencing_scripts">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20info">Link to this property</a>

removable\_entries: List\[String]

Source class names whose tombstone entry is now stale and safe to delete from <code>exports</code> (no remaining referencing scripts).

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20removable_entries">Link to this property</a>

<details>

<summary>

renamed: List\[Attributes]

Applied <code>renamed</code> tombstones.

</summary>

from: String

The original (source) class name.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed%20%3E%20(attribute)%20from">Link to this property</a>

to: String

The new class name (<code>renamed_to</code>).

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20renamed">Link to this property</a>

<details>

<summary>

transfer\_pending: List\[Attributes]

Phase-1 transfer hints recorded on the target side.

</summary>

class: String

The target-side class name awaiting transfer.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending%20%3E%20(attribute)%20class">Link to this property</a>

from: String

The source script the namespace will be transferred from.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending%20%3E%20(attribute)%20from">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transfer_pending">Link to this property</a>

<details>

<summary>

transferred: List\[Attributes]

Committed <code>transferred</code> tombstones (phase-2).

</summary>

class: String

The source class name that was transferred.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20class">Link to this property</a>

phase: String

The transfer phase. Currently always <code>committed</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20phase">Link to this property</a>

to: String

The destination script that now owns the namespace.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20transferred">Link to this property</a>

updated: List\[String]

Class names whose provisioned namespace was mutated in place.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20updated">Link to this property</a>

<details>

<summary>

warnings: List\[Attributes]

Non-blocking warnings. See <code>exports_reconciliation_warning</code>.

</summary>

class: String

The class name the warning is about.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20class">Link to this property</a>

message: String

Human-readable explanation of the warning.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20message">Link to this property</a>

scenario: String

Stable, machine-readable tag identifying which reconciliation scenario produced an error, warning, or info entry. Clients may branch on this value instead of parsing <code>message</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20scenario">Link to this property</a>

namespace\_id: String

The provisioned namespace the warning relates to, when applicable.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings%20%3E%20(attribute)%20namespace_id">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation%20%3E%20(attribute)%20warnings">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20exports_reconciliation">Link to this property</a>

keep\_assets?: Bool

Retain assets which exist for a previously uploaded Worker version; used in lieu of providing a completion token. An explicit <code>assets</code> upload takes precedence over <code>keep_assets</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20keep_assets">Link to this property</a>

keep\_bindings?: Set\[String]

List of binding types to keep from previous\_upload.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20keep_bindings">Link to this property</a>

<details>

<summary>

limits?: Attributes

Limits to apply for this Worker.

</summary>

cpu\_ms?: Int64

The amount of CPU time this Worker can use in milliseconds.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20cpu_ms">Link to this property</a>

subrequests?: Int64

The number of subrequests this Worker can make per request.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20limits%20%3E%20(attribute)%20subrequests">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20limits">Link to this property</a>

logpush?: Bool

Whether Logpush is turned on for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20logpush">Link to this property</a>

main\_module?: String

Name of the uploaded file that contains the main module (e.g. the file exporting a <code>fetch</code> handler). Indicates a <code>module syntax</code> Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20main_module">Link to this property</a>

<details>

<summary>

migrations?: Attributes

Migrations to apply for Durable Objects associated with this Worker.

</summary>

deleted\_classes?: List\[String]

A list of classes to delete Durable Object namespaces from.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20deleted_classes">Link to this property</a>

new\_classes?: List\[String]

A list of classes to create Durable Object namespaces from.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_classes">Link to this property</a>

new\_sqlite\_classes?: List\[String]

A list of classes to create Durable Object namespaces with SQLite from.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_sqlite_classes">Link to this property</a>

new\_tag?: String

Tag to set as the latest migration tag.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20new_tag">Link to this property</a>

old\_tag?: String

Tag used to verify against the latest migration tag for this Worker. If they don’t match, the upload is rejected.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20old_tag">Link to this property</a>

<details>

<summary>

renamed\_classes?: List\[Attributes]

A list of classes with Durable Object namespaces that were renamed.

</summary>

from?: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20from">Link to this property</a>

to?: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20renamed_classes">Link to this property</a>

<details>

<summary>

transferred\_classes?: List\[Attributes]

A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.

</summary>

from?: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from">Link to this property</a>

from\_script?: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from_script">Link to this property</a>

to?: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20transferred_classes">Link to this property</a>

<details>

<summary>

steps?: List\[Attributes]

Migrations to apply in order.

</summary>

deleted\_classes?: List\[String]

A list of classes to delete Durable Object namespaces from.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20deleted_classes">Link to this property</a>

new\_classes?: List\[String]

A list of classes to create Durable Object namespaces from.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20new_classes">Link to this property</a>

new\_sqlite\_classes?: List\[String]

A list of classes to create Durable Object namespaces with SQLite from.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20new_sqlite_classes">Link to this property</a>

<details>

<summary>

renamed\_classes?: List\[Attributes]

A list of classes with Durable Object namespaces that were renamed.

</summary>

from?: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20from">Link to this property</a>

to?: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20renamed_classes">Link to this property</a>

<details>

<summary>

transferred\_classes?: List\[Attributes]

A list of transfers for Durable Object namespaces from a different Worker and class to a class defined in this Worker.

</summary>

from?: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from">Link to this property</a>

from\_script?: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20from_script">Link to this property</a>

to?: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes%20%3E%20(attribute)%20to">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps%20%3E%20(attribute)%20transferred_classes">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations%20%3E%20(attribute)%20steps">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20migrations">Link to this property</a>

<details>

<summary>

observability?: Attributes

Observability settings for the Worker.

</summary>

enabled: Bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate?: Float64

The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues?: Attributes

Real-time Issues settings for the Worker.

</summary>

enabled?: Bool

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues">Link to this property</a>

<details>

<summary>

logs?: Attributes

Log settings for the Worker.

</summary>

enabled: Bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20enabled">Link to this property</a>

invocation\_logs: Bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20invocation_logs">Link to this property</a>

destinations?: List\[String]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20destinations">Link to this property</a>

head\_sampling\_rate?: Float64

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist?: Bool

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs">Link to this property</a>

redact\_query\_string?: Bool

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces?: Attributes

Trace settings for the Worker.

</summary>

destinations?: List\[String]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled?: Bool

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate?: Float64

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist?: Bool

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20persist">Link to this property</a>

propagation\_policy?: String

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20observability">Link to this property</a>

<details>

<summary>

package\_dependencies?: List\[Attributes]

The list of npm packages that were installed and used when this Worker version was built.

</summary>

installed\_version: String

The exact version that was resolved and installed by the package manager.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20installed_version">Link to this property</a>

name: String

The npm package name.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20name">Link to this property</a>

package\_json\_version: String

The version constraint as written in package.json.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20package_dependencies%20%3E%20(attribute)%20package_json_version">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20package_dependencies">Link to this property</a>

<details>

<summary>

placement?: Attributes

Configuration for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.

</summary>

mode?: String

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20mode">Link to this property</a>

last\_analyzed\_at: Time

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20last_analyzed_at">Link to this property</a>

status: String

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20status">Link to this property</a>

region?: String

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20region">Link to this property</a>

hostname?: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20hostname">Link to this property</a>

host?: String

TCP host and port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20host">Link to this property</a>

<details>

<summary>

target?: List\[Attributes]

Array of placement targets (currently limited to single target).

</summary>

region?: String

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20region">Link to this property</a>

hostname?: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20hostname">Link to this property</a>

host?: String

TCP host:port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20placement">Link to this property</a>

tags?: Set\[String]

List of strings to use as tags for this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20tags">Link to this property</a>

<details>

<summary>

tail\_consumers?: Set\[Attributes]

List of Workers that will consume logs from the attached Worker.

</summary>

service: String

Name of Worker that is to be the consumer.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20service">Link to this property</a>

environment?: String

Optional environment if the Worker utilizes one.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20environment">Link to this property</a>

namespace?: String

Optional dispatch namespace the script belongs to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20namespace">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20tail_consumers">Link to this property</a>

usage\_model?: String

Usage model for the Worker invocations.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata%20%3E%20(attribute)%20usage_model">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20metadata>)

##### optional Expand Collapse

files?: Set\[String]

An array of modules (often JavaScript files) comprising a Worker script. At least one module must be present and referenced in the metadata as `main_module` or `body_part` by filename.  
Possible Content-Type(s) are: `application/javascript+module`, `text/javascript+module`, `application/javascript`, `text/javascript`, `text/x-python`, `text/x-python-requirement`, `application/wasm`, `text/plain`, `application/octet-stream`, `application/source-map`.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20files>)

##### computed Expand Collapse

id: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

compatibility\_date: String

Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20compatibility_date>)

created\_on: Time

When the script was created.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_on>)

entry\_point: String

The entry point for the script.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20entry_point>)

etag: String

Hashed script content, can be used in a If-None-Match header when updating.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20etag>)

has\_assets: Bool

Whether a Worker contains assets.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20has_assets>)

has\_modules: Bool

Whether a Worker contains modules.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20has_modules>)

last\_deployed\_from: String

The client most recently used to deploy this Worker.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20last_deployed_from>)

logpush: Bool

Whether Logpush is turned on for the Worker.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20logpush>)

migration\_tag: String

The tag of the Durable Object migration that was most recently applied for this Worker.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20migration_tag>)

modified\_on: Time

When the script was last modified.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20modified_on>)

Deprecatedplacement\_mode: String

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement_mode>)

Deprecatedplacement\_status: String

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement_status>)

startup\_time\_ms: Int64

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20startup_time_ms>)

tag: String

The immutable ID of the script.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tag>)

usage\_model: String

Usage model for the Worker invocations.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20usage_model>)

compatibility\_flags: Set\[String]

Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20compatibility_flags>)

handlers: List\[String]

The names of handlers exported as part of the default export.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20handlers>)

tags: Set\[String]

Tags associated with the Worker.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tags>)

<details>

<summary>

cache\_options: Attributes

Global CacheW configuration for the Worker. When caching is on, the platform provisions a <code>cloudflare.app</code> zone for the Worker. A <code>type: worker</code> entry in the <code>exports</code> map can override this value for a single entrypoint.

</summary>

enabled: Bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20enabled">Link to this property</a>

cross\_version\_cache: Bool

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20cross_version_cache">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20cache_options>)

<details>

<summary>

exports: Map\[Attributes]

Declarative exports for the Worker’s most recent version, including Durable Object classes (with their <code>storage</code> backend) and named Worker entrypoints. Tombstoned lifecycle entries are omitted, so only live exports (<code>created</code> and <code>expecting-transfer</code>) are returned.

</summary>

type: String

Marks this entry as a Worker entrypoint export.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20type">Link to this property</a>

<details>

<summary>

cache: Attributes

Cache override for this entrypoint. Overrides the Worker’s global <code>cache_options.enabled</code> for this entrypoint only.

</summary>

enabled: Bool

Whether caching is enabled for this entrypoint.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache">Link to this property</a>

state: String

Live export. May be omitted; defaults to <code>created</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20state">Link to this property</a>

storage: String

Durable Object storage backend. <code>sqlite</code> is the recommended (and only) backend for new namespaces. <code>legacy-kv</code> is accepted only for a class whose namespace already exists as KV-backed; the <code>exports</code> flow never provisions a new <code>legacy-kv</code> namespace.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20storage">Link to this property</a>

container: String

Name of the container (declared in the upload’s <code>metadata.containers</code>) that backs this Durable Object. When set, the namespace is container-enabled. Valid only on live entries.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20container">Link to this property</a>

renamed\_to: String

The destination class name. Must differ from the source class (the map key) and must be declared as a live (<code>created</code>) entry in the same <code>exports</code> map. Write-only: never present in GET responses.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20renamed_to">Link to this property</a>

transferred\_to: String

The destination script name. Must be in the same account and the same dispatch-namespace context (or both non-dispatch). Cross-dispatch-namespace transfers are rejected. Write-only: never present in GET responses.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transferred_to">Link to this property</a>

transfer\_from: String

The source script name to receive the namespace from. Must be in the same account and dispatch-namespace context. Present on reads for <code>expecting-transfer</code> entries.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transfer_from">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20exports>)

<details>

<summary>

named\_handlers: List\[Attributes]

Named exports, such as Durable Object class implementations and named entrypoints.

</summary>

handlers: List\[String]

The names of handlers exported as part of the named export.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20named_handlers%20%3E%20(attribute)%20handlers">Link to this property</a>

name: String

The name of the export.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20named_handlers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20named_handlers>)

<details>

<summary>

observability: Attributes

Observability settings for the Worker.

</summary>

enabled: Bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues: Attributes

Real-time Issues settings for the Worker.

</summary>

enabled: Bool

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues">Link to this property</a>

<details>

<summary>

logs: Attributes

Log settings for the Worker.

</summary>

enabled: Bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20enabled">Link to this property</a>

invocation\_logs: Bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20invocation_logs">Link to this property</a>

destinations: List\[String]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20destinations">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist: Bool

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs">Link to this property</a>

redact\_query\_string: Bool

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces: Attributes

Trace settings for the Worker.

</summary>

destinations: List\[String]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled: Bool

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist: Bool

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20persist">Link to this property</a>

propagation\_policy: String

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20observability>)

<details>

<summary>

placement: Attributes

Configuration for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.

</summary>

mode: String

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20mode">Link to this property</a>

last\_analyzed\_at: Time

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20last_analyzed_at">Link to this property</a>

status: String

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20status">Link to this property</a>

region: String

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host and port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20host">Link to this property</a>

<details>

<summary>

target: List\[Attributes]

Array of placement targets (currently limited to single target).

</summary>

region: String

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host:port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20placement>)

<details>

<summary>

tail\_consumers: Set\[Attributes]

List of Workers that will consume logs from the attached Worker.

</summary>

service: String

Name of Worker that is to be the consumer.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20service">Link to this property</a>

environment: String

Optional environment if the Worker utilizes one.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20environment">Link to this property</a>

namespace: String

Optional dispatch namespace the script belongs to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20namespace">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20tail_consumers>)

### cloudflare\_workers\_script

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_workers_script" "example_workers_script" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  script_name = "this-is_my_script-01"
  metadata = {
    annotations = {
      workers_message = "Fixed bug."
      workers_tag = "v1.0.1"
    }
    assets = {
      config = {
        headers = <<EOT
        /dashboard/*
        X-Frame-Options: DENY

        /static/*
        Access-Control-Allow-Origin: *
        EOT
        redirects = <<EOT
        /foo /bar 301
        /news/* /blog/:splat
        EOT
        base_path = "/docs/"
        html_handling = "auto-trailing-slash"
        not_found_handling = "404-page"
        run_worker_first = []
        serve_directly = true
      }
      jwt = "jwt"
    }
    bindings = [{
      name = "MY_ENV_VAR"
      text = "my_data"
      type = "plain_text"
    }]
    body_part = "worker.js"
    cache_options = {
      enabled = true
      cross_version_cache = true
    }
    compatibility_date = "2021-01-01T00:00:00Z"
    compatibility_flags = ["nodejs_compat"]
    exports = {
      Admin = {
        type = "worker"
        cache = {
          enabled = true
        }
        state = "created"
      }
      Counter = {
        storage = "sqlite"
        type = "durable-object"
        container = "my-container"
        state = "created"
      }
      OldCounter = {
        renamed_to = "Counter"
        state = "renamed"
        type = "durable-object"
      }
      default = {
        type = "worker"
        cache = {
          enabled = false
        }
        state = "created"
      }
    }
    keep_assets = false
    keep_bindings = ["string"]
    limits = {
      cpu_ms = 50
      subrequests = 1000
    }
    logpush = false
    main_module = "worker.js"
    migrations = {
      deleted_classes = ["string"]
      new_classes = ["string"]
      new_sqlite_classes = ["string"]
      new_tag = "v2"
      old_tag = "v1"
      renamed_classes = [{
        from = "from"
        to = "to"
      }]
      transferred_classes = [{
        from = "from"
        from_script = "from_script"
        to = "to"
      }]
    }
    observability = {
      enabled = true
      head_sampling_rate = 0.1
      issues = {
        enabled = true
      }
      logs = {
        enabled = true
        invocation_logs = true
        destinations = ["cloudflare"]
        head_sampling_rate = 0.1
        persist = true
      }
      redact_query_string = false
      traces = {
        destinations = ["cloudflare"]
        enabled = true
        head_sampling_rate = 0.1
        persist = true
        propagation_policy = "authenticated"
      }
    }
    package_dependencies = [{
      installed_version = "4.17.22"
      name = "lodash"
      package_json_version = "^4.17.21"
    }]
    placement = {
      mode = "smart"
    }
    tags = ["string"]
    tail_consumers = [{
      service = "my-log-consumer"
      environment = "production"
      namespace = "my-namespace"
    }]
    usage_model = "standard"
  }
  files = ["Example data"]
}
```

#### data cloudflare\_workers\_script

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

script\_name?: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20script_name>)

<details>

<summary>

filter?: Attributes

</summary>

tags?: String

Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is ‘yes’ or ‘no’.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20tags">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter>)

##### computed Expand Collapse

id: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

script: String

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20script>)

### cloudflare\_workers\_script

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers_script" "example_workers_script" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  script_name = "this-is_my_script-01"
}
```

#### data cloudflare\_workers\_scripts

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

tags?: String

Filter scripts by tags. Format: comma-separated list of tag:allowed pairs where allowed is ‘yes’ or ‘no’.

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20tags>)

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

The name used to identify the script.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

<details>

<summary>

cache\_options: Attributes

Global CacheW configuration for the Worker. When caching is on, the platform provisions a <code>cloudflare.app</code> zone for the Worker. A <code>type: worker</code> entry in the <code>exports</code> map can override this value for a single entrypoint.

</summary>

enabled: Bool

Whether caching is enabled for this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20enabled">Link to this property</a>

cross\_version\_cache: Bool

Whether cached responses are shared across Worker version uploads. This is independent of <code>enabled</code>. It can stay true while caching is off, so the preference survives turning caching off and back on.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20cache_options%20%3E%20(attribute)%20cross_version_cache">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20cache_options">Link to this property</a>

compatibility\_date: String

Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20compatibility_date">Link to this property</a>

compatibility\_flags: Set\[String]

Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a <code>compatibility_date</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20compatibility_flags">Link to this property</a>

created\_on: Time

When the script was created.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20created_on">Link to this property</a>

etag: String

Hashed script content, can be used in a If-None-Match header when updating.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20etag">Link to this property</a>

<details>

<summary>

exports: Map\[Attributes]

Declarative exports for the Worker’s most recent version, including Durable Object classes (with their <code>storage</code> backend) and named Worker entrypoints. Tombstoned lifecycle entries are omitted, so only live exports (<code>created</code> and <code>expecting-transfer</code>) are returned.

</summary>

type: String

Marks this entry as a Worker entrypoint export.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20type">Link to this property</a>

<details>

<summary>

cache: Attributes

Cache override for this entrypoint. Overrides the Worker’s global <code>cache_options.enabled</code> for this entrypoint only.

</summary>

enabled: Bool

Whether caching is enabled for this entrypoint.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20cache">Link to this property</a>

state: String

Live export. May be omitted; defaults to <code>created</code>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20state">Link to this property</a>

storage: String

Durable Object storage backend. <code>sqlite</code> is the recommended (and only) backend for new namespaces. <code>legacy-kv</code> is accepted only for a class whose namespace already exists as KV-backed; the <code>exports</code> flow never provisions a new <code>legacy-kv</code> namespace.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20storage">Link to this property</a>

container: String

Name of the container (declared in the upload’s <code>metadata.containers</code>) that backs this Durable Object. When set, the namespace is container-enabled. Valid only on live entries.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20container">Link to this property</a>

renamed\_to: String

The destination class name. Must differ from the source class (the map key) and must be declared as a live (<code>created</code>) entry in the same <code>exports</code> map. Write-only: never present in GET responses.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20renamed_to">Link to this property</a>

transferred\_to: String

The destination script name. Must be in the same account and the same dispatch-namespace context (or both non-dispatch). Cross-dispatch-namespace transfers are rejected. Write-only: never present in GET responses.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transferred_to">Link to this property</a>

transfer\_from: String

The source script name to receive the namespace from. Must be in the same account and dispatch-namespace context. Present on reads for <code>expecting-transfer</code> entries.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports%20%3E%20(attribute)%20transfer_from">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20exports">Link to this property</a>

handlers: List\[String]

The names of handlers exported as part of the default export.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20handlers">Link to this property</a>

has\_assets: Bool

Whether a Worker contains assets.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20has_assets">Link to this property</a>

has\_modules: Bool

Whether a Worker contains modules.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20has_modules">Link to this property</a>

last\_deployed\_from: String

The client most recently used to deploy this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20last_deployed_from">Link to this property</a>

logpush: Bool

Whether Logpush is turned on for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20logpush">Link to this property</a>

migration\_tag: String

The tag of the Durable Object migration that was most recently applied for this Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20migration_tag">Link to this property</a>

modified\_on: Time

When the script was last modified.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20modified_on">Link to this property</a>

<details>

<summary>

named\_handlers: List\[Attributes]

Named exports, such as Durable Object class implementations and named entrypoints.

</summary>

handlers: List\[String]

The names of handlers exported as part of the named export.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20named_handlers%20%3E%20(attribute)%20handlers">Link to this property</a>

name: String

The name of the export.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20named_handlers%20%3E%20(attribute)%20name">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20named_handlers">Link to this property</a>

<details>

<summary>

observability: Attributes

Observability settings for the Worker.

</summary>

enabled: Bool

Whether observability is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for incoming requests. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

<details>

<summary>

issues: Attributes

Real-time Issues settings for the Worker.

</summary>

enabled: Bool

Whether real-time Issues are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues%20%3E%20(attribute)%20enabled">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20issues">Link to this property</a>

<details>

<summary>

logs: Attributes

Log settings for the Worker.

</summary>

enabled: Bool

Whether logs are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20enabled">Link to this property</a>

invocation\_logs: Bool

Whether <a href="https://developers.cloudflare.com/workers/observability/logs/workers-logs/#invocation-logs">invocation logs</a> are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20invocation_logs">Link to this property</a>

destinations: List\[String]

A list of destinations where logs will be exported to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20destinations">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for logs. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist: Bool

Whether log persistence is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs%20%3E%20(attribute)%20persist">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20logs">Link to this property</a>

redact\_query\_string: Bool

Whether query strings are removed from request URLs in logs and traces.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20redact_query_string">Link to this property</a>

<details>

<summary>

traces: Attributes

Trace settings for the Worker.

</summary>

destinations: List\[String]

A list of destinations where traces will be exported to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20destinations">Link to this property</a>

enabled: Bool

Whether traces are enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20enabled">Link to this property</a>

head\_sampling\_rate: Float64

The sampling rate for traces. From 0 to 1 (1 = 100%, 0.1 = 10%). Default is 1.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20head_sampling_rate">Link to this property</a>

persist: Bool

Whether trace persistence is enabled for the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20persist">Link to this property</a>

propagation\_policy: String

Controls how inbound trace context (traceparent/tracestate) headers on incoming requests are handled. “authenticated” honors inbound trace context only when accompanied by a valid trace auth token. “accept” unconditionally accepts inbound trace context. Requires the trace propagation feature to be enabled. Returns null when the trace propagation feature is not enabled for the account.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces%20%3E%20(attribute)%20propagation_policy">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability%20%3E%20(attribute)%20traces">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20observability">Link to this property</a>

<details>

<summary>

placement: Attributes

Configuration for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>. Specify mode=‘smart’ for Smart Placement, or one of region/hostname/host.

</summary>

mode: String

Enables <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20mode">Link to this property</a>

last\_analyzed\_at: Time

The last time the script was analyzed for <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20last_analyzed_at">Link to this property</a>

status: String

Status of <a href="https://developers.cloudflare.com/workers/configuration/smart-placement">Smart Placement</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20status">Link to this property</a>

region: String

Cloud region for targeted placement in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host and port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20host">Link to this property</a>

<details>

<summary>

target: List\[Attributes]

Array of placement targets (currently limited to single target).

</summary>

region: String

Cloud region in format ‘provider:region’.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20region">Link to this property</a>

hostname: String

HTTP hostname for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20hostname">Link to this property</a>

host: String

TCP host:port for targeted placement.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target%20%3E%20(attribute)%20host">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement%20%3E%20(attribute)%20target">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement">Link to this property</a>

Deprecatedplacement\_mode: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement_mode">Link to this property</a>

Deprecatedplacement\_status: String

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20placement_status">Link to this property</a>

<details>

<summary>

routes: List\[Attributes]

Routes associated with the Worker.

</summary>

id: String

Identifier.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20routes%20%3E%20(attribute)%20id">Link to this property</a>

pattern: String

Pattern to match incoming requests against. <a href="https://developers.cloudflare.com/workers/configuration/routing/routes/#matching-behavior">Learn more</a>.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20routes%20%3E%20(attribute)%20pattern">Link to this property</a>

script: String

Name of the script to run if the route matches.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20routes%20%3E%20(attribute)%20script">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20routes">Link to this property</a>

tag: String

The immutable ID of the script.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tag">Link to this property</a>

tags: Set\[String]

Tags associated with the Worker.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tags">Link to this property</a>

<details>

<summary>

tail\_consumers: Set\[Attributes]

List of Workers that will consume logs from the attached Worker.

</summary>

service: String

Name of Worker that is to be the consumer.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20service">Link to this property</a>

environment: String

Optional environment if the Worker utilizes one.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20environment">Link to this property</a>

namespace: String

Optional dispatch namespace the script belongs to.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tail_consumers%20%3E%20(attribute)%20namespace">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20tail_consumers">Link to this property</a>

usage\_model: String

Usage model for the Worker invocations.

<a href="#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20usage_model">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_workers\_scripts

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers_scripts" "example_workers_scripts" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  tags = "production:yes,staging:no"
}
```

#### WorkersScriptsSubdomain

#### resource cloudflare\_workers\_script\_subdomain

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.scripts.subdomain%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

script\_name: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts.subdomain%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20script_name>)

enabled: Bool

Whether the Worker should be available on the workers.dev subdomain.

[Link to this property](<#(resource)%20workers.scripts.subdomain%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20enabled>)

##### optional Expand Collapse

previews\_enabled?: Bool

Whether the Worker’s Preview URLs should be available on the workers.dev subdomain.

[Link to this property](<#(resource)%20workers.scripts.subdomain%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20previews_enabled>)

### cloudflare\_workers\_script\_subdomain

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_workers_script_subdomain" "example_workers_script_subdomain" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  script_name = "this-is_my_script-01"
  enabled = true
  previews_enabled = false
}
```

#### data cloudflare\_workers\_script\_subdomain

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.scripts.subdomain%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

script\_name: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts.subdomain%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20script_name>)

##### computed Expand Collapse

enabled: Bool

Whether the Worker is available on the workers.dev subdomain.

[Link to this property](<#(resource)%20workers.scripts.subdomain%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20enabled>)

previews\_enabled: Bool

Whether the Worker’s Preview URLs are available on the workers.dev subdomain.

[Link to this property](<#(resource)%20workers.scripts.subdomain%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20previews_enabled>)

### cloudflare\_workers\_script\_subdomain

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers_script_subdomain" "example_workers_script_subdomain" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  script_name = "this-is_my_script-01"
}
```

#### WorkersScriptsSchedules

#### resource cloudflare\_workers\_cron\_trigger

##### required Expand Collapse

script\_name: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20script_name>)

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

<details>

<summary>

body: List\[Attributes]

</summary>

cron: String

<a href="#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20body%20%3E%20(attribute)%20cron">Link to this property</a>

created\_on: String

<a href="#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20body%20%3E%20(attribute)%20created_on">Link to this property</a>

modified\_on: String

<a href="#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20body%20%3E%20(attribute)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20body>)

##### computed Expand Collapse

id: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

<details>

<summary>

schedules: List\[Attributes]

</summary>

cron: String

<a href="#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20schedules%20%3E%20(attribute)%20cron">Link to this property</a>

created\_on: String

<a href="#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20schedules%20%3E%20(attribute)%20created_on">Link to this property</a>

modified\_on: String

<a href="#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20schedules%20%3E%20(attribute)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20schedules>)

### cloudflare\_workers\_cron\_trigger

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_workers_cron_trigger" "example_workers_cron_trigger" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  script_name = "this-is_my_script-01"
  body = [{
    cron = "*/30 * * * *"
  }]
}
```

#### data cloudflare\_workers\_cron\_trigger

##### required Expand Collapse

script\_name: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20script_name>)

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

##### computed Expand Collapse

id: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

<details>

<summary>

schedules: List\[Attributes]

</summary>

cron: String

<a href="#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20schedules%20%3E%20(attribute)%20cron">Link to this property</a>

created\_on: String

<a href="#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20schedules%20%3E%20(attribute)%20created_on">Link to this property</a>

modified\_on: String

<a href="#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20schedules%20%3E%20(attribute)%20modified_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts.schedules%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20schedules>)

### cloudflare\_workers\_cron\_trigger

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers_cron_trigger" "example_workers_cron_trigger" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  script_name = "this-is_my_script-01"
}
```

#### WorkersScriptsDeployments

#### resource cloudflare\_workers\_deployment

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

script\_name: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20script_name>)

strategy: String

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20strategy>)

<details>

<summary>

versions: List\[Attributes]

Worker versions included in this deployment. Each object must contain a <code>version_id</code> UUID and a <code>percentage</code>; percentages across all objects must total 100. In the <code>cf</code> CLI, pass the entire array as one JSON value to <code>--versions</code>, either inline, for example <code>--versions '[{"version_id":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]'</code>, or from a JSON file with <code>--versions @versions.json</code>.

</summary>

percentage: Float64

Percentage of traffic served by this version.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20versions%20%3E%20(attribute)%20percentage">Link to this property</a>

version\_id: String

Identifier of the Worker Version.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20versions%20%3E%20(attribute)%20version_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20versions>)

##### optional Expand Collapse

<details>

<summary>

annotations?: Attributes

</summary>

workers\_message?: String

Human-readable message about the deployment. Truncated to 1000 bytes if longer.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_message">Link to this property</a>

workers\_triggered\_by: String

Operation that triggered the creation of the deployment.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_triggered_by">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20annotations>)

##### computed Expand Collapse

id: String

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

author\_email: String

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20author_email>)

created\_on: Time

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20created_on>)

source: String

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20source>)

### cloudflare\_workers\_deployment

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_workers_deployment" "example_workers_deployment" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  script_name = "this-is_my_script-01"
  strategy = "percentage"
  versions = [{
    percentage = 100
    version_id = "023e105f-2a42-4f8b-a1c1-73f6a2a30c0f"
  }]
  annotations = {
    workers_message = "Deploy bug fix."
  }
}
```

#### data cloudflare\_workers\_deployment

##### required Expand Collapse

deployment\_id: String

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20deployment_id>)

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

script\_name: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20script_name>)

##### computed Expand Collapse

id: String

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

author\_email: String

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20author_email>)

created\_on: Time

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20created_on>)

source: String

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20source>)

strategy: String

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20strategy>)

<details>

<summary>

annotations: Attributes

</summary>

workers\_message: String

Human-readable message about the deployment. Truncated to 1000 bytes if longer.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_message">Link to this property</a>

workers\_triggered\_by: String

Operation that triggered the creation of the deployment.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_triggered_by">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20annotations>)

<details>

<summary>

versions: List\[Attributes]

Worker versions included in this deployment. Each object must contain a <code>version_id</code> UUID and a <code>percentage</code>; percentages across all objects must total 100. In the <code>cf</code> CLI, pass the entire array as one JSON value to <code>--versions</code>, either inline, for example <code>--versions '[{"version_id":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]'</code>, or from a JSON file with <code>--versions @versions.json</code>.

</summary>

percentage: Float64

Percentage of traffic served by this version.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20versions%20%3E%20(attribute)%20percentage">Link to this property</a>

version\_id: String

Identifier of the Worker Version.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20versions%20%3E%20(attribute)%20version_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20versions>)

### cloudflare\_workers\_deployment

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers_deployment" "example_workers_deployment" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  script_name = "this-is_my_script-01"
  deployment_id = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
```

#### data cloudflare\_workers\_deployments

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

script\_name: String

Name of the script.

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20script_name>)

##### optional Expand Collapse

since?: Time

Start of the deployment creation time range, inclusive.

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20since>)

until?: Time

End of the deployment creation time range, inclusive.

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20until>)

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

<details>

<summary>

deployments: List\[Attributes]

</summary>

id: String

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20id">Link to this property</a>

created\_on: Time

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20created_on">Link to this property</a>

source: String

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20source">Link to this property</a>

strategy: String

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20strategy">Link to this property</a>

<details>

<summary>

versions: List\[Attributes]

Worker versions included in this deployment. Each object must contain a <code>version_id</code> UUID and a <code>percentage</code>; percentages across all objects must total 100. In the <code>cf</code> CLI, pass the entire array as one JSON value to <code>--versions</code>, either inline, for example <code>--versions '[{"version_id":"023e105f-2a42-4f8b-a1c1-73f6a2a30c0f","percentage":100}]'</code>, or from a JSON file with <code>--versions @versions.json</code>.

</summary>

percentage: Float64

Percentage of traffic served by this version.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20versions%20%3E%20(attribute)%20percentage">Link to this property</a>

version\_id: String

Identifier of the Worker Version.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20versions%20%3E%20(attribute)%20version_id">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20versions">Link to this property</a>

<details>

<summary>

annotations: Attributes

</summary>

workers\_message: String

Human-readable message about the deployment. Truncated to 1000 bytes if longer.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_message">Link to this property</a>

workers\_triggered\_by: String

Operation that triggered the creation of the deployment.

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20annotations%20%3E%20(attribute)%20workers_triggered_by">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20annotations">Link to this property</a>

author\_email: String

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments%20%3E%20(attribute)%20author_email">Link to this property</a>

</details>

<a href="#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20deployments">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.scripts.deployments%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_workers\_deployments

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers_deployments" "example_workers_deployments" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  script_name = "this-is_my_script-01"
  since = "2019-12-27T18:11:19.117Z"
  until = "2019-12-27T18:11:19.117Z"
}
```

#### WorkersDomains

#### resource cloudflare\_workers\_custom\_domain

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20account_id>)

hostname: String

Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20hostname>)

service: String

Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20service>)

##### optional Expand Collapse

zone\_id?: String

ID of the zone containing the domain hostname.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_id>)

zone\_name?: String

Name of the zone containing the domain hostname.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20zone_name>)

##### computed Expand Collapse

id: String

Immutable ID of the domain.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20id>)

cert\_id: String

ID of the TLS certificate issued for the domain.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20cert_id>)

Deprecatedenvironment: String

Worker environment associated with the domain.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20resource)%20%3E%20(attribute)%20environment>)

### cloudflare\_workers\_custom\_domain

Terraform

HTTPTypeScriptPythonGoTerraform

```
resource "cloudflare_workers_custom_domain" "example_workers_custom_domain" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  hostname = "app.example.com"
  service = "my-worker"
  zone_id = "593c9c94de529bbbfaac7c53ced0447d"
  zone_name = "example.com"
}
```

#### data cloudflare\_workers\_custom\_domain

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

domain\_id?: String

ID of the domain.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20domain_id>)

<details>

<summary>

filter?: Attributes

</summary>

environment?: String

Worker environment associated with the domain.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20environment">Link to this property</a>

hostname?: String

Hostname of the domain.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20hostname">Link to this property</a>

service?: String

Name of the Worker associated with the domain.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20service">Link to this property</a>

zone\_id?: String

ID of the zone containing the domain hostname.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20zone_id">Link to this property</a>

zone\_name?: String

Name of the zone containing the domain hostname.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter%20%3E%20(attribute)%20zone_name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20filter>)

##### computed Expand Collapse

id: String

ID of the domain.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20id>)

cert\_id: String

ID of the TLS certificate issued for the domain.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20cert_id>)

Deprecatedenvironment: String

Worker environment associated with the domain.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20environment>)

hostname: String

Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20hostname>)

service: String

Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20service>)

zone\_id: String

ID of the zone containing the domain hostname.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_id>)

zone\_name: String

Name of the zone containing the domain hostname.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-single)%20%3E%20(attribute)%20zone_name>)

### cloudflare\_workers\_custom\_domain

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers_custom_domain" "example_workers_custom_domain" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  domain_id = "dbe10b4bc17c295377eabd600e1787fd"
}
```

#### data cloudflare\_workers\_custom\_domains

##### required Expand Collapse

account\_id: String

Identifier.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20account_id>)

##### optional Expand Collapse

environment?: String

Worker environment associated with the domain.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20environment>)

hostname?: String

Hostname of the domain.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20hostname>)

service?: String

Name of the Worker associated with the domain.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20service>)

zone\_id?: String

ID of the zone containing the domain hostname.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20zone_id>)

zone\_name?: String

Name of the zone containing the domain hostname.

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20zone_name>)

max\_items?: Int64

Max items to fetch, default: 1000

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20max_items>)

##### computed Expand Collapse

<details>

<summary>

result: List\[Attributes]

The items returned by the data source

</summary>

id: String

Immutable ID of the domain.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20id">Link to this property</a>

cert\_id: String

ID of the TLS certificate issued for the domain.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20cert_id">Link to this property</a>

Deprecatedenvironment: String

Worker environment associated with the domain.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20environment">Link to this property</a>

hostname: String

Hostname of the domain. Can be either the zone apex or a subdomain of the zone. Requests to this hostname will be routed to the configured Worker.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20hostname">Link to this property</a>

service: String

Name of the Worker associated with the domain. Requests to the configured hostname will be routed to this Worker.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20service">Link to this property</a>

zone\_id: String

ID of the zone containing the domain hostname.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20zone_id">Link to this property</a>

zone\_name: String

Name of the zone containing the domain hostname.

<a href="#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result%20%3E%20(attribute)%20zone_name">Link to this property</a>

</details>

[Link to this property](<#(resource)%20workers.domains%20%3E%20(terraform%20datasource-plural)%20%3E%20(attribute)%20result>)

### cloudflare\_workers\_custom\_domains

Terraform

HTTPTypeScriptPythonGoTerraform

```
data "cloudflare_workers_custom_domains" "example_workers_custom_domains" {
  account_id = "023e105f4ecef8ad9ca31a8372d0c353"
  environment = "production"
  hostname = "app.example.com"
  service = "my-worker"
  zone_id = "593c9c94de529bbbfaac7c53ced0447d"
  zone_name = "example.com"
}
```