> For the complete documentation index, see [llms.txt](https://docs.rumi.systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rumi.systems/rumi-cli/commands/cloud/aws/add-proxy.md).

# add-proxy

Add an nginx proxy entry on a bastion.

## Syntax

```bash
rumi cloud aws add-proxy --profile <profile> --name <name> --key-pair <key-pair> --listen-port <port> --host-name <host> --host-port <port> [options]
```

## Options

| Option          | Short | Description                                           | Default        |
| --------------- | ----- | ----------------------------------------------------- | -------------- |
| `--profile`     | `-p`  | AWS profile to use                                    | Required       |
| `--name`        | `-n`  | Name of the environment                               | Required       |
| `--key-pair`    | `-k`  | Network key pair                                      | Required       |
| `--listen-port` | `-l`  | Port on which nginx should listen for inbound traffic | Required       |
| `--host-name`   | `-t`  | Target host to proxy traffic to                       | Required       |
| `--host-port`   | `-o`  | Port on the target host to proxy traffic to           | Required       |
| `--server-name` | `-s`  | Nginx server name                                     | \_ (catch-all) |
| `--region`      | `-r`  | AWS region                                            | us-east-1      |

## Example

```bash
# Proxy all traffic on port 7443 to the health monitor service
rumi cloud aws add-proxy \
  --profile my-aws-profile \
  --name my-cloud \
  --key-pair my-key \
  --listen-port 7443 \
  --host-name healthmonitor.rumi.local \
  --host-port 7777

# Proxy with a specific server name
rumi cloud aws add-proxy \
  --profile my-aws-profile \
  --name my-cloud \
  --key-pair my-key \
  --listen-port 7443 \
  --host-name healthmonitor.rumi.local \
  --host-port 7777 \
  --server-name myapp-health.example.com
```

## See Also

* [launch-bastion](/rumi-cli/commands/cloud/aws/launch-bastion.md)
* [whitelist](/rumi-cli/commands/cloud/aws/whitelist.md)
* [provision](/rumi-cli/commands/cloud/aws/provision.md)
