Giter VIP home page Giter VIP logo

Comments (8)

morgante avatar morgante commented on June 30, 2024 1

Unfortunately Terraform Core doesn't support optional object values - hashicorp/terraform#19898

from terraform-google-lb-http.

rossrochford avatar rossrochford commented on June 30, 2024

Can confirm I have the same issue.

from terraform-google-lb-http.

jerckov avatar jerckov commented on June 30, 2024

@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.

aaronstutzer avatar aaronstutzer commented on June 30, 2024

I have the same issue even with the google-beta provider 🤷

from terraform-google-lb-http.

rantoniuk avatar rantoniuk commented on June 30, 2024

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.

rantoniuk avatar rantoniuk commented on June 30, 2024

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.

ocervell avatar ocervell commented on June 30, 2024

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.

acdha avatar acdha commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.