You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* bump sdk go
* feat(vpcgw): migrate to v2
* bump sdk go
* update tests
* lint and update tests
* fix int type and update pat rule datasource test
* update docs
* markdown lint
* Delete internal/services/vpc/route_datasource.go
* add guide link and logs
* lint
---------
Co-authored-by: Rémy Léone <[email protected]>
Creates and manages GatewayNetworks (connections between a Public Gateway and a Private Network).
9
9
10
-
It allows the attachment of Private Networks to Public Gateways and DHCP configurations.
11
-
For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/public-gateway/#step-3-attach-private-networks-to-the-vpc-public-gateway).
10
+
It allows the attachment of Private Networks to Public Gateways.
11
+
For more information, see [the API documentation](https://www.scaleway.com/en/developers/api/public-gateway/#step-3-attach-private-networks-to-the-vpc-public-gateway).
12
12
13
13
## Example Usage
14
14
@@ -80,73 +80,27 @@ resource scaleway_vpc_gateway_network main {
-`gateway_id` - (Required) The ID of the Public Gateway.
139
88
-`private_network_id` - (Required) The ID of the Private Network.
140
-
-`dhcp_id` - (Required) The ID of the Public Gateway DHCP configuration. Only one of `dhcp_id`, `static_address` and `ipam_config` should be specified.
141
-
-`enable_masquerade` - (Defaults to true) Whether masquerade (dynamic NAT) should be enabled on this GatewayNetwork
142
-
-`enable_dhcp` - (Defaults to true) Whether a DHCP configuration should be enabled on this GatewayNetwork. Requires a DHCP ID.
143
-
-`cleanup_dhcp` - (Defaults to false) Whether to remove DHCP configuration on this GatewayNetwork upon destroy. Requires DHCP ID.
144
-
-`static_address` - Enable DHCP configration on this GatewayNetwork. Only one of `dhcp_id`, `static_address` and `ipam_config` should be specified.
145
89
-`ipam_config` - Auto-configure the GatewayNetwork using Scaleway's IPAM (IP address management service). Only one of `dhcp_id`, `static_address` and `ipam_config` should be specified.
146
90
-`push_default_route` - Defines whether to enable the default route on the GatewayNetwork.
147
91
-`ipam_ip_id` - Use this IPAM-booked IP ID as the Gateway's IP in this Private Network.
92
+
-`enable_masquerade` - (Defaults to true) Whether masquerade (dynamic NAT) should be enabled on this GatewayNetwork.
148
93
-`zone` - (Defaults to [provider](../index.md#zone)`zone`) The [zone](../guides/regions_and_zones.md#zones) in which the gateway network should be created.
149
94
95
+
~> **Important:**
96
+
In 2023, DHCP functionality was moved from Public Gateways to Private Networks, DHCP fields are now deprecated.
97
+
For more information, please refer to the [dedicated guide](../guides/migration_guide_vpcgw_v2.md).
98
+
99
+
-`dhcp_id` - (Deprecated) Please use `ipam_config`. The ID of the Public Gateway DHCP configuration. Only one of `dhcp_id`, `static_address` and `ipam_config` should be specified.
100
+
-`enable_dhcp` - (Deprecated) Please use `ipam_config`. Whether a DHCP configuration should be enabled on this GatewayNetwork. Requires a DHCP ID.
101
+
-`cleanup_dhcp` - (Deprecated) Please use `ipam_config`. Whether to remove DHCP configuration on this GatewayNetwork upon destroy. Requires DHCP ID.
102
+
-`static_address` - (Deprecated) Please use `ipam_config`. Enable DHCP configration on this GatewayNetwork. Only one of `dhcp_id`, `static_address` and `ipam_config` should be specified.
103
+
150
104
## Attributes Reference
151
105
152
106
In addition to all arguments above, the following attributes are exported:
Copy file name to clipboardExpand all lines: docs/resources/vpc_public_gateway.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,10 +59,11 @@ The following arguments are supported:
59
59
-`tags` - (Optional) The tags to associate with the Public Gateway.
60
60
-`zone` - (Defaults to [provider](../index.md#zone)`zone`) The [zone](../guides/regions_and_zones.md#zones) in which the Public Gateway should be created.
61
61
-`project_id` - (Defaults to [provider](../index.md#project_id)`project_id`) The ID of the project the public gateway is associated with.
62
-
-`upstream_dns_servers` - (Optional) Override the gateway's default recursive DNS servers, if DNS features are enabled.
62
+
-`upstream_dns_servers` - (Deprecated) Override the gateway's default recursive DNS servers, if DNS features are enabled.
63
63
-`ip_id` - (Optional) Attach an existing flexible IP to the gateway.
64
64
-`bastion_enabled` - (Optional) Enable SSH bastion on the gateway.
65
65
-`bastion_port` - (Optional) The port on which the SSH bastion will listen.
66
+
-`allowed_ip_ranges` - (Optional) Set a definitive list of IP ranges (in CIDR notation) allowed to connect to the SSH bastion.
66
67
-`enable_smtp` - (Optional) Enable SMTP on the gateway.
67
68
-`refresh_ssh_keys` - (Optional) Trigger a refresh of the SSH keys on the Public Gateway by changing this field's value.
0 commit comments