diff --git a/README.md b/README.md
index 98a553b..7f7ceae 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ module "my_network" {
| Name | Version |
|------|---------|
| [terraform](#requirement_terraform) | >= 0.13 |
-| [scaleway](#requirement_scaleway) | >= 2.41.0 |
+| [scaleway](#requirement_scaleway) | >= 2.52.0 |
## Resources
@@ -40,7 +40,6 @@ module "my_network" {
|------|-------------|------|---------|:--------:|
| [bastion_enabled](#input_bastion_enabled) | Enable SSH bastion on gateways. | `bool` | `false` | no |
| [bastion_port](#input_bastion_port) | Port on which SSH bastions will listen. | `number` | `61000` | no |
-| [dns_servers](#input_dns_servers) | Override the gateway's default recursive DNS servers. | `list(string)` | `null` | no |
| [enable_routing](#input_enable_routing) | Enable routing between Private Networks in the VPC. Note that you will not be able to deactivate it afterwards. | `bool` | `false` | no |
| [gw_enabled](#input_gw_enabled) | Create a public gateway and attach it to the subnet. | `bool` | `true` | no |
| [gw_reserve_ip](#input_gw_reserve_ip) | Reserve a flexible IP for the gateway. | `bool` | `true` | no |
diff --git a/main.tf b/main.tf
index 7017480..1dab77b 100644
--- a/main.tf
+++ b/main.tf
@@ -54,16 +54,15 @@ resource "scaleway_ipam_ip" "this" {
resource "scaleway_vpc_public_gateway" "this" {
count = var.gw_enabled ? 1 : 0
- bastion_enabled = var.bastion_enabled
- bastion_port = var.bastion_port
- enable_smtp = var.smtp_enabled
- ip_id = var.gw_reserve_ip ? scaleway_vpc_public_gateway_ip.this[count.index].id : null
- name = format("%s-gateway", var.name)
- project_id = var.project_id
- tags = var.tags
- type = var.gw_type
- upstream_dns_servers = var.dns_servers
- zone = var.zone
+ bastion_enabled = var.bastion_enabled
+ bastion_port = var.bastion_port
+ enable_smtp = var.smtp_enabled
+ ip_id = var.gw_reserve_ip ? scaleway_vpc_public_gateway_ip.this[count.index].id : null
+ name = format("%s-gateway", var.name)
+ project_id = var.project_id
+ tags = var.tags
+ type = var.gw_type
+ zone = var.zone
}
resource "scaleway_vpc_gateway_network" "this" {
diff --git a/variables.tf b/variables.tf
index bb268b3..5af2853 100644
--- a/variables.tf
+++ b/variables.tf
@@ -10,12 +10,6 @@ variable "bastion_port" {
default = 61000
}
-variable "dns_servers" {
- description = "Override the gateway's default recursive DNS servers."
- type = list(string)
- default = null
-}
-
variable "enable_routing" {
description = "Enable routing between Private Networks in the VPC. Note that you will not be able to deactivate it afterwards."
type = bool
diff --git a/versions.tf b/versions.tf
index 0fb2c23..37fb479 100644
--- a/versions.tf
+++ b/versions.tf
@@ -3,7 +3,7 @@ terraform {
required_providers {
scaleway = {
source = "scaleway/scaleway"
- version = ">= 2.41.0"
+ version = ">= 2.52.0"
}
}
}