Skip to content

Commit d67cd2e

Browse files
committed
feat!: Drop support for upstream DNS servers
1 parent 2216877 commit d67cd2e

File tree

4 files changed

+11
-19
lines changed

4 files changed

+11
-19
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module "my_network" {
2121
| Name | Version |
2222
|------|---------|
2323
| <a name="requirement_terraform"></a> [terraform](#requirement_terraform) | >= 0.13 |
24-
| <a name="requirement_scaleway"></a> [scaleway](#requirement_scaleway) | >= 2.41.0 |
24+
| <a name="requirement_scaleway"></a> [scaleway](#requirement_scaleway) | >= 2.52.0 |
2525

2626
## Resources
2727

@@ -40,7 +40,6 @@ module "my_network" {
4040
|------|-------------|------|---------|:--------:|
4141
| <a name="input_bastion_enabled"></a> [bastion_enabled](#input_bastion_enabled) | Enable SSH bastion on gateways. | `bool` | `false` | no |
4242
| <a name="input_bastion_port"></a> [bastion_port](#input_bastion_port) | Port on which SSH bastions will listen. | `number` | `61000` | no |
43-
| <a name="input_dns_servers"></a> [dns_servers](#input_dns_servers) | Override the gateway's default recursive DNS servers. | `list(string)` | `null` | no |
4443
| <a name="input_enable_routing"></a> [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 |
4544
| <a name="input_gw_enabled"></a> [gw_enabled](#input_gw_enabled) | Create a public gateway and attach it to the subnet. | `bool` | `true` | no |
4645
| <a name="input_gw_reserve_ip"></a> [gw_reserve_ip](#input_gw_reserve_ip) | Reserve a flexible IP for the gateway. | `bool` | `true` | no |

main.tf

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,15 @@ resource "scaleway_ipam_ip" "this" {
5454
resource "scaleway_vpc_public_gateway" "this" {
5555
count = var.gw_enabled ? 1 : 0
5656

57-
bastion_enabled = var.bastion_enabled
58-
bastion_port = var.bastion_port
59-
enable_smtp = var.smtp_enabled
60-
ip_id = var.gw_reserve_ip ? scaleway_vpc_public_gateway_ip.this[count.index].id : null
61-
name = format("%s-gateway", var.name)
62-
project_id = var.project_id
63-
tags = var.tags
64-
type = var.gw_type
65-
upstream_dns_servers = var.dns_servers
66-
zone = var.zone
57+
bastion_enabled = var.bastion_enabled
58+
bastion_port = var.bastion_port
59+
enable_smtp = var.smtp_enabled
60+
ip_id = var.gw_reserve_ip ? scaleway_vpc_public_gateway_ip.this[count.index].id : null
61+
name = format("%s-gateway", var.name)
62+
project_id = var.project_id
63+
tags = var.tags
64+
type = var.gw_type
65+
zone = var.zone
6766
}
6867

6968
resource "scaleway_vpc_gateway_network" "this" {

variables.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ variable "bastion_port" {
1010
default = 61000
1111
}
1212

13-
variable "dns_servers" {
14-
description = "Override the gateway's default recursive DNS servers."
15-
type = list(string)
16-
default = null
17-
}
18-
1913
variable "enable_routing" {
2014
description = "Enable routing between Private Networks in the VPC. Note that you will not be able to deactivate it afterwards."
2115
type = bool

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ terraform {
33
required_providers {
44
scaleway = {
55
source = "scaleway/scaleway"
6-
version = ">= 2.41.0"
6+
version = ">= 2.52.0"
77
}
88
}
99
}

0 commit comments

Comments
 (0)