terraform-google-modules / terraform-google-lb-http

Creates a global HTTP load balancer for Compute Engine by using forwarding rules
https://registry.terraform.io/modules/terraform-google-modules/lb-http/google
Apache License 2.0
319 stars 365 forks source link

The main example for serverless_negs submodule has a bad param #448

Closed red8888 closed 1 week ago

red8888 commented 2 months ago

TL;DR

Small bug in the docs, note the usage/example here: https://registry.terraform.io/modules/GoogleCloudPlatform/lb-http/google/latest/submodules/serverless_negs

I got this error: │ Error: Error creating BackendService: googleapi: Error 400: Invalid value for field 'resource.portName': 'my-port'. Port name is not supported for a backend service with Serverless network endpoint groups., invalid

Removed that param and it worked

Expected behavior

No response

Observed behavior

No response

Terraform Configuration

Default usage example: https://registry.terraform.io/modules/GoogleCloudPlatform/lb-http/google/latest/submodules/serverless_negs#usage

Terraform Version

Terraform v1.9.5
on darwin_arm64
+ provider registry.terraform.io/hashicorp/google v5.43.1
+ provider registry.terraform.io/hashicorp/google-beta v5.43.1
+ provider registry.terraform.io/hashicorp/random v3.6.2

Additional information

No response

github-actions[bot] commented 2 weeks ago

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