Skip to main content
Version: 3.0.0

SSH Tunnel

An SSH tunnel is a secure connection between two devices. This resource allows you to create an SSH tunnel to a bastion host, which can then be used in other connections to tunnel through to a target host.

Examples

ssh_tunnel:
host: example-bastion-host.com
port: 22
user: example-user
private_key: ${secret.my_vault_name.my_private_key}

SshTunnel

Below are the properties for the SshTunnel. Each property links to the specific details section further down in this page.

PropertyDefaultTypeRequiredDescription
ssh_tunnelSshTunnelOptionsYesConfiguration options for the SSH tunnel.

Property Details

SshTunnelOptions

Configuration options for an SSH tunnel.

PropertyDefaultTypeRequiredDescription
namestring
NoThe name of the model
descriptionstring
NoA brief description of what the model does.
metadataResourceMetadata
NoMeta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources.
hoststringYesThe bastion host to connect to.
portintegerYesThe port to connect to on the bastion host.
userstringYesThe username to use when connecting to the bastion host.
passwordstring
NoThe password to use when connecting to the bastion host.
private_keystring
NoThe private key to use when connecting to the bastion host.
private_key_passphrasestring
NoThe passphrase for the private key, if it's encrypted.

ResourceMetadata

Meta information of a resource. In most cases it doesn't affect the system behavior but may be helpful to analyze project resources.

PropertyDefaultTypeRequiredDescription
sourceResourceLocation
NoThe origin or source information for the resource.
source_event_uuidstring
NoUUID of the event that is associated with creation of this resource.

ResourceLocation

The origin or source information for the resource.

PropertyDefaultTypeRequiredDescription
pathstringYesPath within repository files where the resource is defined.
first_line_numberinteger
NoFirst line number within path file where the resource is defined.