Comments (8)
Unfortunately Terraform Core doesn't support optional object values - hashicorp/terraform#19898
from terraform-google-lb-http.
Can confirm I have the same issue.
from terraform-google-lb-http.
@nguyen-doan I had same problem when only google
provider was used. After added google-beta
provider, error was gone.
from terraform-google-lb-http.
I have the same issue even with the google-beta
provider 🤷
from terraform-google-lb-http.
Currently the module expects full backend declarations without using the defaults for the "backends" definition. I think it used to be better in the past, where only some of the params were required.
from terraform-google-lb-http.
That's indeed sad, having hashicorp/terraform#22449 would be a step forward.
Just out of curiosity, why was it possible in the past? I can see the configuration data format was different back then, but I'm just wondering if some mix of past approach with current configuration scheme would be possible to achieve..
from terraform-google-lb-http.
Please check here, apparently we can set type=any
but we lose variable validation until version 0.13
using validate
blocks.
from terraform-google-lb-http.
If anyone else hits this, I side-stepped the issue on an old project by editing .terraform/modules/gce-lb-http/variables.tf
to change the backend to type=any
long enough to upgrade to Terraform 0.13, running an apply (which produced no changes) to bump the saved state version, and then upgrading to Terraform 0.14, which has better validation which reports the specific failing element.
In my project these backend additions were required to match the existing config:
custom_request_headers = null
security_policy = null
iap_config = {
enable = false
enable = false
oauth2_client_id = null
oauth2_client_secret = null
}
… and the health-check required adding logging = null
from terraform-google-lb-http.
Related Issues (20)
- Serverless Negs Backends don't work as expected HOT 1
- manage backend service timeout in serverless_negs HOT 1
- Provide support to upload multiple customer own certificate HOT 2
- Add support for v5 of google and google-beta providers HOT 7
- cannot create internal load balancer on a subnetwork HOT 2
- Create a sub-module for DNS Authorization-based Managed Certificates HOT 3
- 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 4
- Release 9.3.0 for TPG v5 compatibility HOT 1
- enable_ipv6 without create_ipv6_address or ipv6_address creates ipv4 frontends HOT 4
- 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.
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.