Skip to main content

Cloudflare/tunnel

@swamp/cloudflare/tunnelv2026.07.21.1· 1mo agoMODELS
01README

Cloudflare tunnel infrastructure models

02Release Notes
  • Updated: cfd_tunnel
  • Updated: warp_connector
03Models2
@swamp/cloudflare/tunnel/cfd-tunnelv2026.07.21.1cfd_tunnel.ts

Global Arguments

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringA user-friendly name for a tunnel.
tunnel_secret?stringSets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.
config_src?enumIndicates 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?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare 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?stringCloudflare 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
ArgumentTypeDescription
idstringThe 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
ArgumentTypeDescription
idstringThe ID of the Cfd Tunnel to import
fn update(identifier?: string)
Update Cfd Tunnel attributes
ArgumentTypeDescription
identifier?stringTarget a specific Cfd Tunnel by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Cfd Tunnel
ArgumentTypeDescription
idstringThe ID of the Cfd Tunnel
fn sync(identifier?: string)
Sync Cfd Tunnel state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget 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

ArgumentTypeDescription
account_idstringCloudflare account ID
namestringA user-friendly name for a tunnel.
tunnel_secret?stringSets the password required to run a locally-managed tunnel. Must be at least 32 bytes and encoded as a base64 string.
ha?booleanIndicates that the tunnel will be created to be highly available. If omitted, defaults to false.
apiToken?stringCloudflare API token; overrides the CLOUDFLARE_API_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
apiKey?stringCloudflare 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?stringCloudflare 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
ArgumentTypeDescription
idstringThe 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
ArgumentTypeDescription
idstringThe ID of the Warp Connector to import
fn update(identifier?: string)
Update Warp Connector attributes
ArgumentTypeDescription
identifier?stringTarget a specific Warp Connector by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Warp Connector
ArgumentTypeDescription
idstringThe ID of the Warp Connector
fn sync(identifier?: string)
Sync Warp Connector state from Cloudflare
ArgumentTypeDescription
identifier?stringTarget a specific Warp Connector by id (e.g. one discovered by list)

Resources

state(infinite)— Warp Connector resource state
04Previous Versions4
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