cloudflare.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 System.Collections.Generic;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.ArgoTunnel("example", new()
{
AccountId = "d41d8cd98f00b204e9800998ecf8427e",
Name = "my-tunnel",
Secret = "AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v4/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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ArgoTunnel;
import com.pulumi.cloudflare.ArgoTunnelArgs;
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 ArgoTunnel("example", ArgoTunnelArgs.builder()
.accountId("d41d8cd98f00b204e9800998ecf8427e")
.name("my-tunnel")
.secret("AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=")
.build());
}
}
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=",
});
resources:
example:
type: cloudflare:ArgoTunnel
properties:
accountId: d41d8cd98f00b204e9800998ecf8427e
name: my-tunnel
secret: AQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIAQIDBAUGBwg=
Create 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)
public ArgoTunnel(String name, ArgoTunnelArgs args)
public ArgoTunnel(String name, ArgoTunnelArgs args, CustomResourceOptions options)
type: cloudflare:ArgoTunnel
properties: # The arguments to resource properties.
options: # 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.
- 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.
- name String
- The unique name of the resource.
- args ArgoTunnelArgs
- The arguments to resource properties.
- options 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 Architecture and Concepts docs.
Inputs
The ArgoTunnel resource accepts the following input properties:
- Account
Id 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 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 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 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.
- account
Id 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ArgoTunnel resource produces the following output properties:
- Cname string
Usable CNAME for accessing the Argo Tunnel.
- Id string
The provider-assigned unique ID for this managed resource.
- Tunnel
Token string Token used by a connector to authenticate and run the tunnel.
- Cname string
Usable CNAME for accessing the Argo Tunnel.
- Id string
The provider-assigned unique ID for this managed resource.
- Tunnel
Token string Token used by a connector to authenticate and run the tunnel.
- cname String
Usable CNAME for accessing the Argo Tunnel.
- id String
The provider-assigned unique ID for this managed resource.
- tunnel
Token String Token used by a connector to authenticate and run the tunnel.
- cname string
Usable CNAME for accessing the Argo Tunnel.
- id string
The provider-assigned unique ID for this managed resource.
- tunnel
Token string Token used by a connector to authenticate and run the tunnel.
- cname str
Usable CNAME for accessing the Argo Tunnel.
- id str
The provider-assigned unique ID for this managed resource.
- tunnel_
token str Token used by a connector to authenticate and run the tunnel.
- cname String
Usable CNAME for accessing the Argo Tunnel.
- id String
The provider-assigned unique ID for this managed resource.
- tunnel
Token String Token used by a connector to authenticate and run the tunnel.
Look up 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,
cname: Optional[str] = None,
name: Optional[str] = None,
secret: Optional[str] = None,
tunnel_token: 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)
public static ArgoTunnel get(String name, Output<String> id, ArgoTunnelState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Account
Id string The Cloudflare account ID that you wish to manage the Argo Tunnel on.
- Cname string
Usable CNAME for accessing the Argo Tunnel.
- 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.
- Tunnel
Token string Token used by a connector to authenticate and run the tunnel.
- Account
Id string The Cloudflare account ID that you wish to manage the Argo Tunnel on.
- Cname string
Usable CNAME for accessing the Argo Tunnel.
- 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.
- Tunnel
Token string Token used by a connector to authenticate and run the tunnel.
- account
Id String The Cloudflare account ID that you wish to manage the Argo Tunnel on.
- cname String
Usable CNAME for accessing the Argo Tunnel.
- 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.
- tunnel
Token String Token used by a connector to authenticate and run the tunnel.
- account
Id string The Cloudflare account ID that you wish to manage the Argo Tunnel on.
- cname string
Usable CNAME for accessing the Argo Tunnel.
- 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.
- tunnel
Token string Token used by a connector to authenticate and run the tunnel.
- account_
id str The Cloudflare account ID that you wish to manage the Argo Tunnel on.
- cname str
Usable CNAME for accessing the Argo Tunnel.
- 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.
- tunnel_
token str Token used by a connector to authenticate and run the tunnel.
- account
Id String The Cloudflare account ID that you wish to manage the Argo Tunnel on.
- cname String
Usable CNAME for accessing the Argo Tunnel.
- 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.
- tunnel
Token String Token used by a connector to authenticate and run the tunnel.
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
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
cloudflare
Terraform Provider.