Open chubibest opened 3 years ago
@chubibest The immediate cause of the error message is that you haven't specified a port for the load balancer health check, so the module can't create a firewall rule to allow the health check. However, once you get past that hurdle, you'll find that it won't accept a google_compute_backend_bucket
as a group
. I don't think it's possible to use this module to create load balancers with backend buckets. If you look at Google's own module examples, they actually don't use the module to create the load balancer that uses the backend bucket: https://github.com/terraform-google-modules/terraform-google-lb-http/blob/1d3ad9ee0690fbd29ddb853d21b65b9b581ac678/examples/multi-backend-multi-mig-bucket-https-lb/main.tf#L338
I think supporting a static backend bucket would be a great feature to add to this module-perhaps as a submodule.
Thank you, @craigafinch
An example of just a LoadBalancer with a static backend bucket would indeed be greatly appreciated.
@chubibest @tguvdamm I posted an example of using a Cloud Storage bucket as a backend hosting for static files behind an HTTP/S load balancer.
Thanks!
Bookmarking that!
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
This is kinda weird right? I came here because I found no example on this page: https://registry.terraform.io/modules/GoogleCloudPlatform/lb-http/google/latest
Its like the simplest thing to do. Maybe thats why the module doesn't support it? Like its so simple that using a module would be overkill?
Just curious if this was deliberate because that reasoning kind of makes sense to me.
I want to spin up a load balancer with an ip for a storage bucket, but I run into this error whenever I run 'terraform apply'
This is my config file
Little help please.