Skip to content

Commit b8baea5

Browse files
authored
AWS S3 Docs (#2008)
This change updates the connections documentation with info about AWS S3 Connections.
1 parent 9b4ca0f commit b8baea5

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

docs/docs/connections.mdx

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,39 @@ title: "Connections"
66

77
# Connections
88

9-
Wave allows users to connect to various machines and unify them together in a way that preserves the unique behavior of each. At the moment, this extends to SSH remote connections and local WSL connections.
9+
Wave allows users to connect to various machines and unify them together in a way that preserves the unique behavior of each. At the moment, this extends to SSH remote connections, local WSL connections, and AWS S3 buckets.
1010

1111
## Access a Connection in a Block
1212

13-
The easiest way to access connections is to click the <i className="fa-sharp fa-laptop"/> icon. From there, you can either type `[user]@[host]` for a desired SSH remote or type `wsl://<distribution name>` for a desired WSL distribution. Alternatively, if the connection already exists in the dropdown list, you can either click it or navigate to it with arrow keys and press enter to connect.
13+
The easiest way to access connections is to click the <i className="fa-sharp fa-laptop"/> icon. From there, you can type one of the following to depending on the connection you want:
14+
15+
For SSH Connections:
16+
17+
- `[user]@[host]`
18+
- `[host]`
19+
- `[user]@[host]:[port]`
20+
21+
For WSL Connections:
22+
23+
- `wsl://<distribution name>`
24+
25+
For AWS S3 Connections:
26+
27+
- `aws:[profile]`
28+
29+
Alternatively, if the connection already exists in the dropdown list, you can either click it or navigate to it with arrow keys and press enter to connect.
1430

1531
![a dropdown showing a list of connections that already exist](./img/connection-dropdown.png)
1632

33+
## Different Types of Connections
34+
35+
As there are several different types of connections, not all of the types have access to the same features. For instance, AWS S3 connections can only be used in preview widgets (directory, image viewer, code editor, etc.). Meanwhile, SSH and WSL connections can always work in terminal widgets, and if `wsh` shell extensions are installed, they can also work in preview widgets and the sysinfo widget.
36+
37+
As such, certain features will not be available for certain types of connections. As an example, AWS S3 connections cannot run startup scripts as they are not capable of running scripts.
38+
1739
## What are wsh Shell Extensions?
1840

19-
`wsh` is a small program that helps manage waveterm regardless of which machine you are currently connected to. It is always included on your host machine, but you also have the option to install it when connecting to a remote machine. If it is installed on the remote machine, it is installed at `~/.waveterm/bin/wsh`. Then, when wave connects to your connection (and only when wave connects to your connection), the following happens:
41+
`wsh` is a small program that helps manage waveterm regardless of which machine you are currently connected to. It is always included on your host machine, but you also have the option to install it when connecting to SSH and WSL Connections. If it is installed on the connection, it is installed at `~/.waveterm/bin/wsh`. Then, when wave connects to your connection (and only when wave connects to your connection), the following happens:
2042

2143
- `~/.waveterm/bin` is added to your `PATH` for that individual session. This allows the user to use the `wsh` command without providing the complete path.
2244
- Several environment variables are injected into the session to make certain tasks with `wsh` easier. These are [listed below](#additional-environment-variables).
@@ -64,7 +86,9 @@ The SSH values that are loaded into the dropdown by default are obtained by pars
6486
- manually typing your connection into the connection box (if this successfully connects, the connection will be added to the internal `config/connections.json` file)
6587
- use `wsh ssh [user]@[host]` in your terminal (if this successfully connects, the connection will be added to the internal `config/connections.json` file)
6688

67-
WSL values are added by searching the installed WSL distributions as they appear in the Windows Registry.
89+
WSL connections are added by searching the installed WSL distributions as they appear in the Windows Registry. They also exist in the `config/connections.json` file similarly to SSH connections.
90+
91+
AWS S3 Connections are added by parsing the `~/.aws/config` file. Unlike the SSH and WSL connections, these are not stored in the `config/connections.json` file.
6892

6993
## SSH Config Parsing
7094

0 commit comments

Comments
 (0)