Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ip_forward setting azurerm provider change #67

Open
ajlab-gh opened this issue Sep 3, 2024 · 1 comment
Open

ip_forward setting azurerm provider change #67

ajlab-gh opened this issue Sep 3, 2024 · 1 comment

Comments

@ajlab-gh
Copy link

ajlab-gh commented Sep 3, 2024

enable_ip_forwarding has been depecated and replaced with ip_forwarding_enabled

azurerm_network_interface terraform resources should be changed from:

resource "azurerm_network_interface" "fgtport2" {
  name                 = "fgtport2"
  location             = var.location
  resource_group_name  = azurerm_resource_group.myterraformgroup.name
  enable_ip_forwarding = true

  ip_configuration {
    name                          = "ipconfig1"
    subnet_id                     = azurerm_subnet.privatesubnet.id
    private_ip_address_allocation = "Dynamic"
  }

  tags = {
    environment = "Terraform Single FortiGate"
  }
}

To:

resource "azurerm_network_interface" "fgtport2" {
  name                 = "fgtport2"
  location             = var.location
  resource_group_name  = azurerm_resource_group.myterraformgroup.name
  ip_forwarding_enabled = true

  ip_configuration {
    name                          = "ipconfig1"
    subnet_id                     = azurerm_subnet.privatesubnet.id
    private_ip_address_allocation = "Dynamic"
  }

  tags = {
    environment = "Terraform Single FortiGate"
  }
}
@jvhoof
Copy link
Collaborator

jvhoof commented Sep 3, 2024

Hi,

Thank you for opening this issue. We are aware of this change in the latest Azure provider. We will be updating this next batch of updates in the next couple of weeks.

Regards,

Joeri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants