Skip to content

Commit

Permalink
feat(vpc-gw): add support bastion (#2333)
Browse files Browse the repository at this point in the history
Co-authored-by: Rémy Léone <rleone@scaleway.com>
  • Loading branch information
scaleway-bot and remyleone committed Jun 6, 2022
1 parent 426ac8e commit 762e658
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
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

0 comments on commit 762e658

Please sign in to comment.