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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to the 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 to hashibot, a community member has claimed the issue already.
main.tf in resource "google_compute_region_url_map" "test-url-map":
95: path_matcher {
The argument "default_service" is required, but no definition was found.
Panic Output
Expected Behavior
Terraform plan to succeed and not requesting a default_service to be set when a default_url_redirect is set within a path_matcher block. As per the google documentation:
pathMatchers[].defaultService
...
Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
main.tf in resource "google_compute_region_url_map" "test-url-map":
95: path_matcher {
The argument "default_service" is required, but no definition was found.
@edwardmedia , thanks for following up. Yes I noticed it at the root, the root one is actually optional which is good, and we also have default_service within the path_matcher block, but that one is not optional and should be.
I am getting familiar with magic-module to PR it.
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
Terraform v0.13.4
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Terraform plan to succeed and not requesting a default_service to be set when a default_url_redirect is set within a path_matcher block. As per the google documentation:
https://cloud.google.com/compute/docs/reference/rest/v1/regionUrlMaps
Actual Behavior
Steps to Reproduce
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: