Cloudflare/tunnel
@swamp/cloudflare/tunnelv2026.07.21.1
01README
Cloudflare tunnel infrastructure models
02Release Notes
- Updated: cfd_tunnel
- Updated: warp_connector
03Models
@swamp/cloudflare/tunnel/cfd-tunnelv2026.07.21.1cfd_tunnel.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| name | string | A user-friendly name for a tunnel. |
| tunnel_secret? | string | Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string. |
| config_src? | enum | Indicates if this is a locally or remotely configured tunnel. If `local`, manage the tunnel using a YAML file on the origin machine. If `cloudflare`, manage the tunnel on the Zero Trust dashboard. |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email. |
| email? | string | Cloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey. |
fn create()
Create a Cfd Tunnel
fn get(id: string)
Get a Cfd Tunnel
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Cfd Tunnel |
fn lookup()
Look up an existing Cfd Tunnel by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Cfd Tunnel by ID into state for management
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Cfd Tunnel to import |
fn update(identifier?: string)
Update Cfd Tunnel attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Cfd Tunnel by id (e.g. one discovered by list) |
fn delete(id: string)
Delete the Cfd Tunnel
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Cfd Tunnel |
fn sync(identifier?: string)
Sync Cfd Tunnel state from Cloudflare
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Cfd Tunnel by id (e.g. one discovered by list) |
Resources
state(infinite)— Cfd Tunnel resource state
@swamp/cloudflare/tunnel/warp-connectorv2026.07.21.1warp_connector.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| account_id | string | Cloudflare account ID |
| name | string | A user-friendly name for a tunnel. |
| tunnel_secret? | string | Sets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string. |
| ha? | boolean | Indicates that the tunnel will be created to be highly available. If omitted, defaults to false. |
| apiToken? | string | Cloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
| apiKey? | string | Cloudflare API key for the legacy key+email auth path; overrides the CLOUDFLARE_API_KEY environment variable. Wire with a vault.get(...) expression. Requires email. |
| email? | string | Cloudflare account email for the legacy key+email auth path; overrides the CLOUDFLARE_EMAIL environment variable. Requires apiKey. |
fn create()
Create a Warp Connector
fn get(id: string)
Get a Warp Connector
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Warp Connector |
fn lookup()
Look up an existing Warp Connector by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Warp Connector by ID into state for management
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Warp Connector to import |
fn update(identifier?: string)
Update Warp Connector attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Warp Connector by id (e.g. one discovered by list) |
fn delete(id: string)
Delete the Warp Connector
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Warp Connector |
fn sync(identifier?: string)
Sync Warp Connector state from Cloudflare
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Warp Connector by id (e.g. one discovered by list) |
Resources
state(infinite)— Warp Connector resource state
04Previous Versions
2026.07.18.2
Modified 2 models
2026.06.08.2
- Updated: cfd_tunnel
- Updated: warp_connector
2026.05.29.1
- Updated: cfd_tunnel
- Updated: warp_connector
2026.05.22.1
- Added: cfd_tunnel
- Added: warp_connector
05Stats
A
100 / 100
Downloads
8
Archive size
14.1 KB
Verified by Swamp
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
06Platforms
07Labels