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

azurerm_lb_outbound_rule keeps crashing #10543

Closed
benhurjoel opened this issue Feb 11, 2021 · 3 comments · Fixed by #10696
Closed

azurerm_lb_outbound_rule keeps crashing #10543

benhurjoel opened this issue Feb 11, 2021 · 3 comments · Fixed by #10696

Comments

@benhurjoel
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Terraform version: 0.13.4
AzureRM version : 2.45

Affected Resource(s)

  • azurerm_lb_outbound_rule

Terraform Configuration Files

resource "azurerm_lb_outbound_rule" "outbound_rule" {
  for_each = try(var.settings.outbound_rules, {})

  resource_group_name     = var.resource_group_name
  loadbalancer_id         = azurerm_lb.lb.id
  name                    = each.value.name
  protocol                = each.value.protocol
  backend_address_pool_id = azurerm_lb_backend_address_pool.backend_address_pool.id
  enable_tcp_reset        = try(each.value.enable_tcp_reset, null)
  allocated_outbound_ports = try(each.value.allocated_outbound_ports, null)
  idle_timeout_in_minutes  = try(each.value.idle_timeout_in_minutes, null)


  dynamic "frontend_ip_configuration" {
    for_each = try(var.settings.outbound_rules.frontend_ip_configuration, {})
    content {
      name = frontend_ip_configuration.value.name
    }
  }

  depends_on = [
    azurerm_lb_backend_address_pool.backend_address_pool,
    azurerm_lb_probe.lb_probe
  ]
}

and my input goes like this :

    outbound_rules = {
      rule1 ={
        name = "outbound-rule"
        protocol = "Tcp"
        resource_group_key = "lb"
        frontend_ip_configuration = {
          config1 = {
            name = "config1"
          }
        }
      }
    }

Panic Output

https://gist.github.com/benhurjoel/b0adedd21fbe62f67c4a4c5686c46287

Expected Behaviour

The resource should get created and get attached to the Load Balancer

Actual Behaviour

It just crashes

Steps to Reproduce

  1. terraform apply

References

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/lb_outbound_rule

@benhurjoel

This comment has been minimized.

@ghost
Copy link

ghost commented Feb 26, 2021

This has been released in version 2.49.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.49.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Mar 25, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.