TunnelArgs

data class TunnelArgs(val accountId: Output<String>? = null, val configSrc: Output<String>? = null, val name: Output<String>? = null, val secret: Output<String>? = null) : ConvertibleToJava<TunnelArgs>

Tunnel exposes applications running on your local web server on any network with an internet connection without manually adding DNS records or configuring a firewall or router.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.Tunnel;
import com.pulumi.cloudflare.TunnelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Tunnel("example", TunnelArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("my-tunnel")
.secret("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=")
.build());
}
}

Import

$ pulumi import cloudflare:index/tunnel:Tunnel example <account_id>/<tunnel_id>

Constructors

Link copied to clipboard
fun TunnelArgs(accountId: Output<String>? = null, configSrc: Output<String>? = null, name: Output<String>? = null, secret: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): TunnelArgs

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account identifier to target for the resource. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val configSrc: Output<String>? = null

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 or using tunnelconfig, tunnelroute or tunnelvirtualnetwork resources. Available values: local, cloudflare. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val name: Output<String>? = null

A user-friendly name chosen when the tunnel is created. Modifying this attribute will force creation of a new resource.

Link copied to clipboard
val secret: Output<String>? = null

32 or more bytes, encoded as a base64 string. The Create Argo Tunnel endpoint sets this as the tunnel's password. Anyone wishing to run the tunnel needs this password. Modifying this attribute will force creation of a new resource.