Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ ARGS:
[upstream-dns-servers.{index}] Override the gateway's default recursive DNS servers, if DNS features are enabled
[ip-id] Attach an existing IP to the gateway
[enable-smtp] Allow SMTP traffic to pass through the gateway
[enable-bastion] Enable SSH bastion on the gateway
[bastion-port] Port of the SSH bastion
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-1 | fr-par-2 | nl-ams-1 | pl-waw-1)

FLAGS:
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/vpc-gw.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ scw vpc-gw gateway create [arg=value ...]
| upstream-dns-servers.{index} | | Override the gateway's default recursive DNS servers, if DNS features are enabled |
| ip-id | | Attach an existing IP to the gateway |
| enable-smtp | | Allow SMTP traffic to pass through the gateway |
| enable-bastion | | Enable SSH bastion on the gateway |
| bastion-port | | Port of the SSH bastion |
| zone | Default: `fr-par-1`<br />One of: `fr-par-1`, `fr-par-2`, `nl-ams-1`, `pl-waw-1` | Zone to target. If none is passed will use default zone from the config |


Expand Down
14 changes: 14 additions & 0 deletions internal/namespaces/vpcgw/v1/vpcgw_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,20 @@ func vpcGwGatewayCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "enable-bastion",
Short: `Enable SSH bastion on the gateway`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "bastion-port",
Short: `Port of the SSH bastion`,
Required: false,
Deprecated: false,
Positional: false,
},
core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneNlAms1, scw.ZonePlWaw1),
},
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {
Expand Down