Skip to content

Cyb3r-Jak3/terraform-cloudflare-browser-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-cloudflare-browser-ssh

This is a simple terraform modules that creates a tunnel to a host using Cloudflare's browser ssh. Includes a configured Tunnel, Access Application, and SSH CA certificate.

Requirements

Name Version
cloudflare >= 4.40.0
random >= 3.5.1

Providers

Name Version
cloudflare >= 4.40.0
random >= 3.5.1

Modules

No modules.

Resources

Name Type
cloudflare_zero_trust_access_application.app resource
cloudflare_zero_trust_access_short_lived_certificate.ssh_cert resource
cloudflare_zero_trust_tunnel_cloudflared.ssh_tunnel resource
cloudflare_zero_trust_tunnel_cloudflared_config.ssh_tunnel resource
random_password.tunnel_secret resource

Inputs

Name Description Type Default Required
access_application_name Name of the Access Application. Defaults to 'SSH for ${var.domain}' string n/a yes
account_id Cloudflare Account ID string n/a yes
allowed_idps List of IDPs allowed to authenticate to the application list(string) n/a yes
app_launcher_visible Whether to show the app launcher bool true no
domain Domain to use for the SSH Tunnel string n/a yes
policies List of policies to apply to the application list(string) [] no
session_duration Session duration for the application string "24h" no
skip_interstitial Whether to skip the interstitial page bool false no
ssh_host Host to connect to via SSH string "localhost" no
ssh_port Port to connect to via SSH number 22 no
team_name Zero Trust Organization Team Name string n/a yes
tunnel_name Name of the SSH Tunnel string "" no

Outputs

Name Description
application_id Browser SSH Access Application ID
aud Audience tag for the SSH Access Application
ssh_cert SSH Certificate for the SSH Access Application
tunnel_cname CNAME for the SSH Tunnel
tunnel_id Tunnel ID
tunnel_token Token for the SSH Tunnel. Needed to connect to the tunnel.

About

Custom Terraform module to create an browser ssh application including a tunnel.

Topics

Resources

License

Stars

Watchers

Forks

Languages