ArgoTunnel

Argo 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

using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Cloudflare.ArgoTunnel("example", new Cloudflare.ArgoTunnelArgs
        {
            AccountId = "d41d8cd98f00b204e9800998ecf8427e",
            Name = "my-tunnel",
            Secret = "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-cloudflare/sdk/v3/go/cloudflare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.NewArgoTunnel(ctx, "example", &cloudflare.ArgoTunnelArgs{
			AccountId: pulumi.String("d41d8cd98f00b204e9800998ecf8427e"),
			Name:      pulumi.String("my-tunnel"),
			Secret:    pulumi.String("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg="),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_cloudflare as cloudflare

example = cloudflare.ArgoTunnel("example",
    account_id="d41d8cd98f00b204e9800998ecf8427e",
    name="my-tunnel",
    secret="AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=")
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const example = new cloudflare.ArgoTunnel("example", {
    accountId: "d41d8cd98f00b204e9800998ecf8427e",
    name: "my-tunnel",
    secret: "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
});

Create a ArgoTunnel Resource

new ArgoTunnel(name: string, args: ArgoTunnelArgs, opts?: CustomResourceOptions);
@overload
def ArgoTunnel(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               account_id: Optional[str] = None,
               name: Optional[str] = None,
               secret: Optional[str] = None)
@overload
def ArgoTunnel(resource_name: str,
               args: ArgoTunnelArgs,
               opts: Optional[ResourceOptions] = None)
func NewArgoTunnel(ctx *Context, name string, args ArgoTunnelArgs, opts ...ResourceOption) (*ArgoTunnel, error)
public ArgoTunnel(string name, ArgoTunnelArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ArgoTunnelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ArgoTunnelArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ArgoTunnelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ArgoTunnelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ArgoTunnel Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The ArgoTunnel resource accepts the following input properties:

AccountId string
The Cloudflare account ID that you wish to manage the Argo Tunnel on.
Name string
A user-friendly name chosen when the tunnel is created. Cannot be empty.
Secret string
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.
AccountId string
The Cloudflare account ID that you wish to manage the Argo Tunnel on.
Name string
A user-friendly name chosen when the tunnel is created. Cannot be empty.
Secret string
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.
accountId string
The Cloudflare account ID that you wish to manage the Argo Tunnel on.
name string
A user-friendly name chosen when the tunnel is created. Cannot be empty.
secret string
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.
account_id str
The Cloudflare account ID that you wish to manage the Argo Tunnel on.
name str
A user-friendly name chosen when the tunnel is created. Cannot be empty.
secret str
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.

Outputs

All input properties are implicitly available as output properties. Additionally, the ArgoTunnel resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ArgoTunnel Resource

Get an existing ArgoTunnel resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ArgoTunnelState, opts?: CustomResourceOptions): ArgoTunnel
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        name: Optional[str] = None,
        secret: Optional[str] = None) -> ArgoTunnel
func GetArgoTunnel(ctx *Context, name string, id IDInput, state *ArgoTunnelState, opts ...ResourceOption) (*ArgoTunnel, error)
public static ArgoTunnel Get(string name, Input<string> id, ArgoTunnelState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AccountId string
The Cloudflare account ID that you wish to manage the Argo Tunnel on.
Name string
A user-friendly name chosen when the tunnel is created. Cannot be empty.
Secret string
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.
AccountId string
The Cloudflare account ID that you wish to manage the Argo Tunnel on.
Name string
A user-friendly name chosen when the tunnel is created. Cannot be empty.
Secret string
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.
accountId string
The Cloudflare account ID that you wish to manage the Argo Tunnel on.
name string
A user-friendly name chosen when the tunnel is created. Cannot be empty.
secret string
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.
account_id str
The Cloudflare account ID that you wish to manage the Argo Tunnel on.
name str
A user-friendly name chosen when the tunnel is created. Cannot be empty.
secret str
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.

Import

Argo Tunnels can be imported a composite ID of the account ID and tunnel UUID.

 $ pulumi import cloudflare:index/argoTunnel:ArgoTunnel example d41d8cd98f00b204e9800998ecf8427e/fd2455cb-5fcc-4c13-8738-8d8d2605237f

where - d41d8cd98f00b204e9800998ecf8427e is the account ID - fd2455cb-5fcc-4c13-8738-8d8d2605237f is the Argo Tunnel UUID

Package Details

Repository
https://github.com/pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.