diff --git a/communicator/ssh/communicator.go b/communicator/ssh/communicator.go index 6e638d7d74..24f816688f 100644 --- a/communicator/ssh/communicator.go +++ b/communicator/ssh/communicator.go @@ -96,6 +96,21 @@ func (c *Communicator) Connect(o terraform.UIOutput) (err error) { c.connInfo.KeyFile != "", c.connInfo.Agent, )) + + if c.connInfo.BastionHost != "" { + o.Output(fmt.Sprintf( + "Using configured bastion host..."+ + " Host: %s\n"+ + " User: %s\n"+ + " Password: %t\n"+ + " Private key: %t\n"+ + " SSH Agent: %t", + c.connInfo.BastionHost, c.connInfo.BastionUser, + c.connInfo.BastionPassword != "", + c.connInfo.BastionKeyFile != "", + c.connInfo.Agent, + )) + } } log.Printf("connecting to TCP connection for SSH")