terraform-google-lb-http icon indicating copy to clipboard operation
terraform-google-lb-http copied to clipboard

Serverless_negs module: once https_redirect is enabled, it can't be disabled

Open ghost opened this issue 4 years ago • 5 comments

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

ghost avatar Oct 14 '21 07:10 ghost

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

github-actions[bot] avatar Dec 13 '21 23:12 github-actions[bot]

You also can't update the managed_ssl_certificate_domains for the same reason.

caoilte avatar Jan 07 '22 11:01 caoilte

Up same issue here

z15alall avatar May 13 '22 13:05 z15alall

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.

Markieta avatar Jun 19 '23 19:06 Markieta

+1 on this. Flagging for followup. Also see a similar behavior when re-naming a managed cert domain.

jmgreger avatar Oct 02 '23 19:10 jmgreger