linode / terraform-provider-linode

Terraform Linode provider
https://www.terraform.io/docs/providers/linode/
Mozilla Public License 2.0
202 stars 98 forks source link

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

Open fabkravmaga opened 2 weeks ago

fabkravmaga commented 2 weeks ago

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" }



2. Run Terraform Plan
fabkravmaga commented 2 weeks ago

Made a PR to update the doc