Interface SSHProvisionerConnection
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SSHProvisionerConnection.Jsii$Proxy
Refer to
invalid @link
{@link https://developer.hashicorp.com/terraform/language/resources/provisioners/connection
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forSSHProvisionerConnection
static final class
An implementation forSSHProvisionerConnection
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
getAgent()
(experimental) Set to false to disable using ssh-agent to authenticate.default String
(experimental) The preferred identity from the ssh agent for authentication.default String
(experimental) The contents of a signed CA Certificate.default String
(experimental) Setting this enables the bastion Host connection.default String
(experimental) The public key from the remote host or the signing CA, used to verify the host connection.default String
(experimental) The password to use for the bastion host.default Number
(experimental) The port to use connect to the bastion host.default String
(experimental) The contents of an SSH key file to use for the bastion host.default String
(experimental) The user for the connection to the bastion host.default String
(experimental) The contents of a signed CA Certificate.getHost()
(experimental) The address of the resource to connect to.default String
(experimental) The public key from the remote host or the signing CA, used to verify the connection.default String
(experimental) The password to use for the connection.default Number
getPort()
(experimental) The port to connect to.default String
(experimental) The contents of an SSH key to use for the connection.default String
(experimental) Setting this enables the SSH over HTTP connection.default Number
(experimental) The port to use connect to the proxy host.default String
(experimental) The ssh connection also supports the following fields to facilitate connections by SSH over HTTP proxy.default String
(experimental) The username to use connect to the private proxy host.default String
(experimental) The password to use connect to the private proxy host.default String
(experimental) The path used to copy scripts meant for remote execution.default String
(experimental) The target platform to connect to.default String
(experimental) The timeout to wait for the connection to become available.getType()
(experimental) The connection type.default String
getUser()
(experimental) The user to use for the connection.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHost
(experimental) The address of the resource to connect to. -
getType
(experimental) The connection type.Valid values are "ssh" and "winrm". Provisioners typically assume that the remote system runs Microsoft Windows when using WinRM. Behaviors based on the SSH target_platform will force Windows-specific behavior for WinRM, unless otherwise specified.
-
getAgent
(experimental) Set to false to disable using ssh-agent to authenticate.On Windows the only supported SSH authentication agent is Pageant.
-
getAgentIdentity
(experimental) The preferred identity from the ssh agent for authentication. -
getBastionCertificate
(experimental) The contents of a signed CA Certificate.The certificate argument must be used in conjunction with a bastion_private_key. These can be loaded from a file on disk using the the file function.
-
getBastionHost
(experimental) Setting this enables the bastion Host connection.The provisioner will connect to bastion_host first, and then connect from there to host.
-
getBastionHostKey
(experimental) The public key from the remote host or the signing CA, used to verify the host connection. -
getBastionPassword
(experimental) The password to use for the bastion host. -
getBastionPort
(experimental) The port to use connect to the bastion host. -
getBastionPrivateKey
(experimental) The contents of an SSH key file to use for the bastion host.These can be loaded from a file on disk using the file function.
-
getBastionUser
(experimental) The user for the connection to the bastion host. -
getCertificate
(experimental) The contents of a signed CA Certificate.The certificate argument must be used in conjunction with a private_key. These can be loaded from a file on disk using the the file function.
-
getHostKey
(experimental) The public key from the remote host or the signing CA, used to verify the connection. -
getPassword
(experimental) The password to use for the connection. -
getPort
(experimental) The port to connect to.Default: 22
-
getPrivateKey
(experimental) The contents of an SSH key to use for the connection.These can be loaded from a file on disk using the file function. This takes preference over password if provided.
-
getProxyHost
(experimental) Setting this enables the SSH over HTTP connection.This host will be connected to first, and then the host or bastion_host connection will be made from there.
-
getProxyPort
(experimental) The port to use connect to the proxy host. -
getProxyScheme
(experimental) The ssh connection also supports the following fields to facilitate connections by SSH over HTTP proxy. -
getProxyUserName
(experimental) The username to use connect to the private proxy host.This argument should be specified only if authentication is required for the HTTP Proxy server.
-
getProxyUserPassword
(experimental) The password to use connect to the private proxy host.This argument should be specified only if authentication is required for the HTTP Proxy server.
-
getScriptPath
(experimental) The path used to copy scripts meant for remote execution.Refer to
invalid @link
{@link https://developer.hashicorp.com/terraform/language/resources/provisioners/connection#how-provisioners-execute-remote-scripts
-
getTargetPlatform
(experimental) The target platform to connect to.Valid values are "windows" and "unix". If the platform is set to windows, the default script_path is c:\windows\temp\terraform_%RAND%.cmd, assuming the SSH default shell is cmd.exe. If the SSH default shell is PowerShell, set script_path to "c:/windows/temp/terraform_%RAND%.ps1"
Default: unix
-
getTimeout
(experimental) The timeout to wait for the connection to become available.Should be provided as a string (e.g., "30s" or "5m".)
Default: 5m
-
getUser
(experimental) The user to use for the connection.Default: root
-
builder
- Returns:
- a
SSHProvisionerConnection.Builder
ofSSHProvisionerConnection
-