linode/terraform-provider-linode

[Bug]: "region" is not a required argument for "linode_nodebalancer_config"

Closed this issue · 2 comments

Terraform Version

Terraform v1.9.7 on darwin_arm64

Linode Provider Version

version = 2.29.1

Effected Terraform Resources

linode_nodebalancer_config doc says region is required when it is not
Screenshot 2024-11-04 at 8 22 06 PM

Terraform Config Files

resource "linode_nodebalancer_config" "foofig" {
    region = var.region
    nodebalancer_id = linode_nodebalancer.foobar.id
    port = 8088
    protocol = "http"
    check = "http"
    check_path = "/foo"
    check_attempts = 3
    check_timeout = 30
    stickiness = "http_cookie"
    algorithm = "source"
}

Debug Output

Terraform Run Error:

Screenshot 2024-11-04 at 8 23 30 PM

Panic Output

No response

Expected Behavior

region should have been an acceptable argument in resource linode_nodebalancer_config

Actual Behavior

Having region argument in resource linode_nodebalancer_config threw an error.

Steps to Reproduce

  1. Create main.tf:
resource "linode_nodebalancer" "foobar" {
    label = "mynodebalancer"
    region = "us-east"
    client_conn_throttle = 20
}

resource "linode_nodebalancer_config" "foofig" {
    region = var.region
    nodebalancer_id = linode_nodebalancer.foobar.id
    port = 8088
    protocol = "http"
    check = "http"
    check_path = "/foo"
    check_attempts = 3
    check_timeout = 30
    stickiness = "http_cookie"
    algorithm = "source"
}
  1. Run Terraform Plan

Made a PR to update the doc

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days