Skip to content

Delete env#14

Draft
bronzle wants to merge 2 commits intoqafrom
delete-env
Draft

Delete env#14
bronzle wants to merge 2 commits intoqafrom
delete-env

Conversation

@bronzle
Copy link
Copy Markdown
Collaborator

@bronzle bronzle commented Apr 2, 2026

direction

for key, svc in local.prod_services : key => svc if key != var.default_service
}

# Exclude allow_delete services from the URL map (prevents bug where deleting a service errors because the url map prevents the backend from being deleted)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard coding instead of self_link we remove the dependency

We we already doing this for the root default_service

content {
name = path_matcher.key
default_service = module.lb-http.backend_services[path_matcher.key].self_link
default_service = "projects/${var.project_id}/global/backendServices/default-lb-backend-${path_matcher.key}"
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove dependency between url map and service

content {
name = "branch-${path_matcher.key}"
default_service = module.lb-http.backend_services[path_matcher.value].self_link
default_service = "projects/${var.project_id}/global/backendServices/default-lb-backend-${path_matcher.value}"
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove dependency between url map and service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant