You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have a Google Internal LB which got the backend.. it was created some 5 years back and now when i am trying to update the module version
Error when applying the module
Error updating RegionBackendService "projects/abc/regions/us-east1/backendServices/hc": googleapi: Error 400: Invalid value for field 'resource.network': 'projects/b/global/networks/c'. Network field cannot be modified., invalid
Expected behavior
No response
Observed behavior
module.abc.module.ilb.google_compute_region_backend_service.default will be updated in-place
module"ilb" {
source="GoogleCloudPlatform/lb-internal/google"version="7.0.0"name="ilb"region=var.regionip_address=google_compute_address.ilb.addressip_protocol="TCP"ports=[]
all_ports=truenetwork=var.host_network_namenetwork_project=var.host_network_project_idsubnetwork=var.subnet_namehealth_check=local.health_checksource_tags=["${var.gce_prefix}-ingress"]
target_tags=[var.gce_prefix]
backends=[
{ group = module.mig-a.instance_group, description ="worker-a" },
{ group = module.mig-b.instance_group, description ="worker-b" },
{ group = module.mig-c.instance_group, description ="worker-c" },
]
service_label="test"
}
Terraform Version
1.9.8
Additional information
when running the google describe command (note changed some project names and regions)
main thing to observe is that it is created in 2020 and there is no network in this describe .. now terraform module is trying to add the network module
TL;DR
Have a Google Internal LB which got the backend.. it was created some 5 years back and now when i am trying to update the module version
Error when applying the module
Error updating RegionBackendService "projects/abc/regions/us-east1/backendServices/hc": googleapi: Error 400: Invalid value for field 'resource.network': 'projects/b/global/networks/c'. Network field cannot be modified., invalid
Expected behavior
No response
Observed behavior
module.abc.module.ilb.google_compute_region_backend_service.default will be updated in-place
~ resource "google_compute_region_backend_service" "default" {
~ connection_draining_timeout_sec = 0 -> 300
id = "projects/abc/regions/us-east1backendServices/ilb-with-http-hc"
name = "http-hc"
+ network = "https://www.googleapis.com/compute/v1/projects/xyzglobal/networks/abc"
# (17 unchanged attributes hidden)
Plan: 0 to add, 1 to change, 0 to destroy.
Terraform Configuration
Terraform Version
Additional information
when running the google describe command (note changed some project names and regions)
main thing to observe is that it is created in 2020 and there is no network in this describe .. now terraform module is trying to add the network module
gcloud compute backend-services describe http-hc
--region=us-east1
--project=abc
backends:
description: worker-b
group: https://www.googleapis.com/compute/v1/projects/def/regions/us-east1/instanceGroups/mig-b
description: worker-a
group: https://www.googleapis.com/compute/v1/projects/def/regions/us-east1/instanceGroups/mig-a
description: worker-c
group: https://www.googleapis.com/compute/v1/projects/def/regions/us-east1/instanceGroups/mig-c
connectionDraining:
drainingTimeoutSec: 0
creationTimestamp: '2020-06-16T18:36:48.137-07:00'
description: ''
fingerprint: P1O2dKi-aWI=
healthChecks:
id: 'mmmmm'
kind: compute#backendService
loadBalancingScheme: INTERNAL
name: http-hc
protocol: TCP
region: https://www.googleapis.com/compute/v1/projects/abc/regions/us-east1
selfLink: https://www.googleapis.com/compute/v1/projects/abc/regions/us-east1/backendServices/http-hc
sessionAffinity: NONE
timeoutSec: 10
The text was updated successfully, but these errors were encountered: