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
Copy file name to clipboardExpand all lines: docs/resources/vpc_gateway_network.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,12 +89,17 @@ The following arguments are supported:
89
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.
90
90
-`push_default_route` - Defines whether to enable the default route on the GatewayNetwork.
91
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
92
+
-`enable_masquerade` - (Defaults to true) Whether masquerade (dynamic NAT) should be enabled on this GatewayNetwork.
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.
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
+
93
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.
94
100
-`enable_dhcp` - (Deprecated) Please use `ipam_config`. Whether a DHCP configuration should be enabled on this GatewayNetwork. Requires a DHCP ID.
95
101
-`cleanup_dhcp` - (Deprecated) Please use `ipam_config`. Whether to remove DHCP configuration on this GatewayNetwork upon destroy. Requires DHCP ID.
96
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.
97
-
-`zone` - (Defaults to [provider](../index.md#zone)`zone`) The [zone](../guides/regions_and_zones.md#zones) in which the gateway network should be created.
Copy file name to clipboardExpand all lines: docs/resources/vpc_public_gateway.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
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.
Description: "The date and time of the last update of the public gateway.",
128
128
},
129
129
},
130
-
DeprecationMessage: "The 'dhcp' resource is deprecated. In 2023, DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed.",
130
+
DeprecationMessage: "The 'dhcp' resource is deprecated. In 2023, DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed. For more information, please refer to the dedicated guide: https://github.com/scaleway/terraform-provider-scaleway/blob/master/docs/guides/migration_guide_vpcgw_v2.md",
DeprecationMessage: "The 'dhcp_reservation' resource is deprecated. In 2023, DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed. You can use IPAM to manage your IPs",
78
+
DeprecationMessage: "The 'dhcp_reservation' resource is deprecated. In 2023, DHCP functionality was moved from Public Gateways to Private Networks, DHCP resources are now no longer needed. You can use IPAM to manage your IPs. For more information, please refer to the dedicated guide: https://github.com/scaleway/terraform-provider-scaleway/blob/master/docs/guides/migration_guide_vpcgw_v2.md",
Deprecated: "Please use ipam_config. For more information, please refer to the dedicated guide: https://github.com/scaleway/terraform-provider-scaleway/blob/master/docs/guides/migration_guide_vpcgw_v2.md",
Description: "Enable DHCP config on this network",
80
-
Deprecated: "Please use ipam_config",
80
+
Deprecated: "Please use ipam_config. For more information, please refer to the dedicated guide: https://github.com/scaleway/terraform-provider-scaleway/blob/master/docs/guides/migration_guide_vpcgw_v2.md",
81
81
},
82
82
"cleanup_dhcp": {
83
83
Type: schema.TypeBool,
84
84
Optional: true,
85
85
Computed: true,
86
86
Description: "Remove DHCP config on this network on destroy",
87
-
Deprecated: "Please use ipam_config",
87
+
Deprecated: "Please use ipam_config. For more information, please refer to the dedicated guide: https://github.com/scaleway/terraform-provider-scaleway/blob/master/docs/guides/migration_guide_vpcgw_v2.md",
Deprecated: "Please use ipam_config. For more information, please refer to the dedicated guide: https://github.com/scaleway/terraform-provider-scaleway/blob/master/docs/guides/migration_guide_vpcgw_v2.md",
97
97
},
98
98
"ipam_config": {
99
99
Type: schema.TypeList,
@@ -211,6 +211,7 @@ func ResourceVPCGatewayNetworkRead(ctx context.Context, d *schema.ResourceData,
211
211
iferr!=nil {
212
212
ifhttperrors.Is412(err) {
213
213
// Fallback to v1 API.
214
+
tflog.Warn(ctx, "v2 API returned 412, falling back to v1 API to wait for gateway network stabilization")
0 commit comments