terraform-google-lb-http
terraform-google-lb-http copied to clipboard
Serverless_negs module: once https_redirect is enabled, it can't be disabled
Hi!
I am using negs module: GoogleCloudPlatform/lb-http/google//modules/serverless_negs
Once the https redirection is enabled by setting https_redirect = true it cant be disabled later, because of following error:
Error when reading or editing UrlMap: googleapi: Error 400: The url_map resource 'projects/XYZ/global/urlMaps/XYZ-https -redirect' is already being used by 'projects/XYZ/global/targetHttpProxies/XYZ-http-proxy', resourceInUseByAnotherResource
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
You also can't update the managed_ssl_certificate_domains for the same reason.
Up same issue here
Workaround in the meantime:
Manually delete the -https-redirect entries (one-by-one) in Load balancing then re-run terraform apply to recreate the HTTP frontend configs.
+1 on this. Flagging for followup. Also see a similar behavior when re-naming a managed cert domain.