Comments (4)
I am not familiar with the issue that you're describing but I have not worked extensively with this module. If you think there is work needed on the module after hashicorp/terraform-provider-google#3937 is addressed then please do open a new issue here.
I'm closing this issue since you've managed to answer your own question. 😄
from terraform-google-lb-http.
Any info on this one?
from terraform-google-lb-http.
Hi @hawksight and @mkozjak. Thank you for your interest in the project! I apologize for the extreme delay in responding.
You can specify multiple backend objects for each index in the backends
input, but each backend object can only specify one group. I think it should be possible to dynamically build the backends
input using for expressions.
from terraform-google-lb-http.
Thanks @aaron-lane - I've been using this module as the basis of my own for a long time.
Being able to loop through the backends so that the number of them is not longer hard coded is now possible for creation using a dynamic
block.
Also to answer my own original question - yes this module will support multi zone clusters and cluster with multiple node pool. You just have to ensure you get the complete list of instance_groups in order to populate the group
value of the backends
input of this module.
The same limitation seems to apply that you will need to know up front how many instance_groups your going to have. In reality I find I do know as we are fairly static in the group respect. Your mileage may vary.
I just checked through this module's recent code for your 0.12 TF support where you use a dynamic block here similar to what I have in my own module
dynamic "backend" {
for_each = var.backend_group_list
content {
group = backend.value
// adding null values otherwise reapplication fails
balancing_mode = null
capacity_scaler = null
description = null
max_connections = null
max_connections_per_instance = null
max_rate = null
max_rate_per_instance = null
max_utilization = null
}
}
Where backend_group_list
= data.google_container_cluster.information.instance_group_urls
.
I set null here so that the default apply without having to know them.
Have you seen any problems updating load balancers after they are initially built? I find my code currently works to build, but tf apply
on a plan once the backend_service
resources are built comes back with errors. I've got an issue open here but wondered if you might have come across the errors I've seen when updating the module?
from terraform-google-lb-http.
Related Issues (20)
- Should be possible change network tier HOT 3
- LB is not re-created when address is assigned after initial creation without address HOT 2
- Issue using certificate map HOT 2
- disable cross region backend test HOT 1
- Add test for cross project backend using new testing framework HOT 5
- Release 9.3.0 for TPG v5 compatibility HOT 1
- enable_ipv6 without create_ipv6_address or ipv6_address creates ipv4 frontends HOT 5
- Source is not setup properly in module nat-mig-http-lb HOT 2
- the mig-nat-http-lb outputs.tf file require a sensitive data HOT 1
- Latest release is breaking HOT 2
- Logs are not disabled properly HOT 2
- Output forwarding rule names HOT 3
- Terraform Cloud - Error creating ManagedSslCertificate HOT 1
- Module requires health_check when some lb configurations do not accept it.
- Use SSL certificate from host project HOT 4
- Can't use the 10.2.0 version when pointing to terraform registry module HOT 2
- Heath checks using port_name only fail to create FW rules
- Custom url_map resource inside the module HOT 1
- Can't set cache mode for serverless NEG to FORCE_CACHE_ALL
- Incorrect use of `lookup` on terraform objects instead of maps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-google-lb-http.