-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dependencies between URL maps and Backend Services not fully being seen #14386
Comments
@jeheyer instead of providing a value directly to resource "google_compute_url_map" "https" {
project = var.project_id
name = "urlmap-https"
default_service = local.default_service_id ---> google_compute_backend_service.default.id
depends_on = [google_compute_backend_service.default, google_compute_backend_bucket.default]
} |
Yes, that's what I've got local.default_service_id set to (the resource id). Even if done explicitly:
Results in same error:
|
Thanks, I now remember seeing that a few years ago and will add a note to google on the feature request https://issuetracker.google.com/issues/257459514?pli=1 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
1.4.5
Affected Resource(s)
Terraform Configuration Files
Debug Output
N/A
Panic Output
N/A
Expected Behavior
Since the URL map must reference at least one backend, the URL map must be replaced if the applicable backend services are replaced. Such a scenario exists when migrating from Classic to non-Classic since load balancer scheme changes and requires a replacement (not just an update).
Actual Behavior
Terraform replaces the backend, but tries to update the URL map in-place, which won't work because the backend will be momentarily destroyed.
Steps to Reproduce
terraform plan
Plan will look something like this. Note "replacement" for backend service, but "updated" for URL map:
terraform apply
Important Factoids
I imagine this would also be triggered when replacing a backend bucket, such as changing locations.
References
The text was updated successfully, but these errors were encountered: