-
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
improve docs for multiple backend in google_compute_backend_service #3498
Comments
I was able to accomplish multiple backend with something like this:
I recognize that the multiple entries per URL route adds complexity beyond your problem. See this post for more details on the |
I'm having the same problem. I keep getting this error (once I have something that will plan)
Rather than using a numbered map like in the original module I have decided to split my backends to be named explicitly and pass them configuration each. Here's two of the backends with slightly varying examples that will plan, but fail on application:
With these vars as example:
Where I supply the value to the load balancer module as such (retrieved from a data lookup in cluster module and output):
At the planning stage the backend sections look like the following:
Like the issues raiser, i's not clear from the the documentation whether I should be passing multiple
Or many For reference, at this point in time the cluster is built and it has two node pools with a single node each, so I have two instance_group_urls I'm trying to pass into each backend. In other projects we usually have about 6 different urls. Does my TF code look sensible / like it should work? EDIT: Just adding that when I have only a single URL in the EDIT: Adding version info:
EDIT: should I raise a separate issue for the error I'm seeing? |
@hawksight I think that can be broken to a separate issue. Debug logs would be a big help as well, they can give us insight in to some of Terraform Core's early errors. That error is coming from Core believing the provider has broken the |
…#3498) Signed-off-by: Modular Magician <[email protected]>
…6365) Signed-off-by: Modular Magician <[email protected]>
The answer to the question is to use Dynamic blocks. Probably it was not available in 2019 but it is now. |
👍 sounds good, thanks for taking a look! To anyone finding this thread: if there are any remaining issues with the provider, please open a new ticket for us to track them! |
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. |
Description
There lacks good understanding how the
backend
argument should appear when there is more than one backend. Is it a list? Do i just repeat the block?Furthermore, for list of backend, how to programatically include that list. if we assume it came from
google_compute_instance_group_manager
where count > 1, how does that list munge in here?New or Affected Resource(s)
Potential Terraform Configuration
i can fake it with hard-coded, but how to get the list semantic right here so that it can be generated from the list itself
But not at all clear what the format looks like for multiple
b/374162165
The text was updated successfully, but these errors were encountered: