adamant-finland-77198
05/22/2024, 9:24 PMmysterious-dentist-60564
05/22/2024, 10:41 PMadamant-finland-77198
05/23/2024, 9:41 AMadamant-finland-77198
05/23/2024, 9:42 AMadamant-finland-77198
05/23/2024, 10:54 AM// Execute command on the remote instance using SSH agent
var commandToRunExec, err3 = remote.NewCommand(ctx, "remoteExec", &remote.CommandArgs{
Connection: &remote.ConnectionArgs{
Host: pulumi.String(vmID.PrivateIp),
User: pulumi.String(vm.User),
},
Create: pulumi.String(commandToRun),
})
if err3 != nil {
return err3
}
adamant-finland-77198
05/23/2024, 10:54 AM