https://pulumi.com logo
Title
e

echoing-oil-42947

04/28/2023, 3:52 PM
As a separate question; can you use a jump host with the
@pulumi/command
package?
s

salmon-account-74572

04/28/2023, 4:11 PM
If you are telling the Command provider to run an SSH-based command, then jump host/bastion host configuration will be transparent (i.e., if you have a configuration stanza in
~/.ssh/config
it will be used automatically).
e

echoing-oil-42947

05/01/2023, 4:43 PM
Follow up on this; does Pulumi's interactions with
~/.ssh/config
follow
Include
blocks? I think it's a fairly new feature so unsure if that is respected or not
g

gorgeous-pillow-81622

05/02/2023, 12:04 PM
I believe @salmon-account-74572 answer is not accurate. The
Command
provider works with the Go SSH Client, which, I believe, do not parse
~/.ssh/config
. There were two PRs attempting to add bastion configuration in the past: https://github.com/pulumi/pulumi-command/pulls
e

echoing-oil-42947

05/03/2023, 3:58 AM
Well that's unfortunate; thanks for the answer Vincent, it looks like this PR adds the functionality in question https://github.com/pulumi/pulumi-command/pull/192