Skip to content

Commit 8b7a9d2

Browse files
committed
feat: add possibility to set accelerated_networking_enabled and ip_forwarding_enabled in the network interface
Signed-off-by: christianjedro <cj@cloudeteer.de>
1 parent 537a9d5 commit 8b7a9d2

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,14 @@ Type: `string`
202202

203203
The following input variables are optional (have default values):
204204

205+
### <a name="input_accelerated_networking_enabled"></a> [accelerated\_networking\_enabled](#input\_accelerated\_networking\_enabled)
206+
207+
Description: Enable accelerated networking on the network interface created by this module. Only applies when create\_network\_interface is true.
208+
209+
Type: `bool`
210+
211+
Default: `false`
212+
205213
### <a name="input_additional_capabilities"></a> [additional\_capabilities](#input\_additional\_capabilities)
206214

207215
Description: Enable additional capabilities.
@@ -603,6 +611,14 @@ object({
603611

604612
Default: `null`
605613

614+
### <a name="input_ip_forwarding_enabled"></a> [ip\_forwarding\_enabled](#input\_ip\_forwarding\_enabled)
615+
616+
Description: Enable ip forwarding on the network interface created by this module. Only applies when create\_network\_interface is true.
617+
618+
Type: `bool`
619+
620+
Default: `false`
621+
606622
### <a name="input_key_vault_id"></a> [key\_vault\_id](#input\_key\_vault\_id)
607623

608624
Description: The resource ID of the Azure Key Vault where the generated admin password or SSH private key should be stored as a secret.

r-network.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ resource "azurerm_network_interface" "this" {
3232

3333
dns_servers = var.dns_servers
3434

35+
accelerated_networking_enabled = var.accelerated_networking_enabled
36+
ip_forwarding_enabled = var.ip_forwarding_enabled
37+
3538
ip_configuration {
3639
name = "ipconfig1"
3740
private_ip_address = var.private_ip_address

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,18 @@ variable "create_network_interface" {
188188
default = true
189189
}
190190

191+
variable "accelerated_networking_enabled" {
192+
description = "Enable accelerated networking on the network interface created by this module. Only applies when create_network_interface is true."
193+
type = bool
194+
default = false
195+
}
196+
197+
variable "ip_forwarding_enabled" {
198+
description = "Enable ip forwarding on the network interface created by this module. Only applies when create_network_interface is true."
199+
type = bool
200+
default = false
201+
}
202+
191203
variable "create_public_ip_address" {
192204
description = "If set to `true` a Azure public IP address will be created and assigned to the default network interface."
193205
default = false

0 commit comments

Comments
 (0)