diff --git a/cmd/scw/testdata/test-all-usage-s2s-vpn-connection-create-usage.golden b/cmd/scw/testdata/test-all-usage-s2s-vpn-connection-create-usage.golden index 8f5f002a4c..6c79912edf 100644 --- a/cmd/scw/testdata/test-all-usage-s2s-vpn-connection-create-usage.golden +++ b/cmd/scw/testdata/test-all-usage-s2s-vpn-connection-create-usage.golden @@ -18,6 +18,8 @@ ARGS: [esp-ciphers.{index}.integrity] (unknown_integrity | sha256 | sha384 | sha512) [esp-ciphers.{index}.dh-group] (unknown_dhgroup | modp2048 | modp3072 | modp4096 | ecp256 | ecp384 | ecp521 | curve25519) [enable-route-propagation] Defines whether route propagation is enabled or not. + [secret.id] + [secret.revision] vpn-gateway-id ID of the VPN gateway to attach to the connection customer-gateway-id ID of the customer gateway to attach to the connection [bgp-config-ipv4.routing-policy-id] diff --git a/docs/commands/s2s-vpn.md b/docs/commands/s2s-vpn.md index b99b0052ac..02880904d3 100644 --- a/docs/commands/s2s-vpn.md +++ b/docs/commands/s2s-vpn.md @@ -67,6 +67,8 @@ scw s2s-vpn connection create [arg=value ...] | esp-ciphers.{index}.integrity | One of: `unknown_integrity`, `sha256`, `sha384`, `sha512` | | | esp-ciphers.{index}.dh-group | One of: `unknown_dhgroup`, `modp2048`, `modp3072`, `modp4096`, `ecp256`, `ecp384`, `ecp521`, `curve25519` | | | enable-route-propagation | | Defines whether route propagation is enabled or not. | +| secret.id | | | +| secret.revision | | | | vpn-gateway-id | Required | ID of the VPN gateway to attach to the connection | | customer-gateway-id | Required | ID of the customer gateway to attach to the connection | | bgp-config-ipv4.routing-policy-id | | | diff --git a/go.mod b/go.mod index 70373c472f..b23c9a8b9a 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( github.com/moby/moby/client v0.4.1 github.com/modelcontextprotocol/go-sdk v1.6.0 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260513090952-0a5c44ecc392 + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260520090938-edea9c4217c0 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 diff --git a/go.sum b/go.sum index c9c64252d4..19fa94c149 100644 --- a/go.sum +++ b/go.sum @@ -478,8 +478,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260513090952-0a5c44ecc392 h1:QdQq3OgcaTJ0i8C4ZvsA88DjnkFHz+TR0CKUPcSvryQ= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260513090952-0a5c44ecc392/go.mod h1:nM6TSLEqF6l+p7ds8I5/Xu+NXD9nRrYSu3sa/czcdEw= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260520090938-edea9c4217c0 h1:Z+qliEoFmWOxM9l80zLe+CHdhbRKPYJw1fegftVPq/s= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260520090938-edea9c4217c0/go.mod h1:nM6TSLEqF6l+p7ds8I5/Xu+NXD9nRrYSu3sa/czcdEw= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.10.0 h1:l+H5ErcW0PAehBNrBxoGv1jjNpGYdZ9RcheFkB2WI14= diff --git a/internal/namespaces/s2s_vpn/v1alpha1/s2s_vpn_cli.go b/internal/namespaces/s2s_vpn/v1alpha1/s2s_vpn_cli.go index 8f7ccae409..5f0a2f3307 100644 --- a/internal/namespaces/s2s_vpn/v1alpha1/s2s_vpn_cli.go +++ b/internal/namespaces/s2s_vpn/v1alpha1/s2s_vpn_cli.go @@ -799,6 +799,18 @@ func s2sVpnConnectionCreate() *core.Command { Deprecated: false, Positional: false, }, + { + Name: "secret.id", + Required: false, + Deprecated: false, + Positional: false, + }, + { + Name: "secret.revision", + Required: false, + Deprecated: false, + Positional: false, + }, { Name: "vpn-gateway-id", Short: `ID of the VPN gateway to attach to the connection`,