Skip to content

Commit 762e658

Browse files
feat(vpc-gw): add support bastion (#2333)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 426ac8e commit 762e658

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

cmd/scw/testdata/test-all-usage-vpc-gw-gateway-create-usage.golden

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ ARGS:
1313
[upstream-dns-servers.{index}] Override the gateway's default recursive DNS servers, if DNS features are enabled
1414
[ip-id] Attach an existing IP to the gateway
1515
[enable-smtp] Allow SMTP traffic to pass through the gateway
16+
[enable-bastion] Enable SSH bastion on the gateway
17+
[bastion-port] Port of the SSH bastion
1618
[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)
1719

1820
FLAGS:

docs/commands/vpc-gw.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ scw vpc-gw gateway create [arg=value ...]
352352
| upstream-dns-servers.{index} | | Override the gateway's default recursive DNS servers, if DNS features are enabled |
353353
| ip-id | | Attach an existing IP to the gateway |
354354
| enable-smtp | | Allow SMTP traffic to pass through the gateway |
355+
| enable-bastion | | Enable SSH bastion on the gateway |
356+
| bastion-port | | Port of the SSH bastion |
355357
| 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 |
356358

357359

internal/namespaces/vpcgw/v1/vpcgw_cli.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,20 @@ func vpcGwGatewayCreate() *core.Command {
346346
Deprecated: false,
347347
Positional: false,
348348
},
349+
{
350+
Name: "enable-bastion",
351+
Short: `Enable SSH bastion on the gateway`,
352+
Required: false,
353+
Deprecated: false,
354+
Positional: false,
355+
},
356+
{
357+
Name: "bastion-port",
358+
Short: `Port of the SSH bastion`,
359+
Required: false,
360+
Deprecated: false,
361+
Positional: false,
362+
},
349363
core.ZoneArgSpec(scw.ZoneFrPar1, scw.ZoneFrPar2, scw.ZoneNlAms1, scw.ZonePlWaw1),
350364
},
351365
Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {

0 commit comments

Comments
 (0)