Giter VIP home page Giter VIP logo

Comments (2)

slackfan avatar slackfan commented on June 12, 2024

Another example of missing support, working without flaw

locals {
  customer_names = ["foo", "bar", "baz"]
  customers = {
    for customer_name in local.customer_names : customer => yamldecode(file("${path.module}/../config/${customer_name}.yaml")) if fileexists("${path.module}/../config/${customer}.yaml")
  }
}

Failing

locals {
  customer_names = ["foo", "bar", "baz"]
  customers = {
    for customer_name in local.customer_names : customer => provider::terraform::decode_tfvars(file("${path.module}/../config/${customer_name}.tfvars")) if fileexists("${path.module}/../config/${customer}.tfvars")
  }
}
Terraform Docs src.......................................................Failed
- hook id: terraform-docs-src
- exit code: 1

Error: Invalid 'for' expression: Extra characters after the end of the 'for' expression.

from terraform-docs.

dustindortch avatar dustindortch commented on June 12, 2024

It isn't only that function, it seems to be provider functions, in general.

Failing:

  validation {
    condition = alltrue([
      for k, v in var.event_mapping : anytrue([
        !v.bisect_batch_on_function_error,
        alltrue([
          v.bisect_batch_on_function_error,
          contains([
            "dynamodb",
            "kinesis"
          ], try(provider::aws::arn_parse(v.source_arn).service, ""))
        ])
      ])
    ])
    error_message = "`bisect_batch_on_function_error` is only available for DynamoDB and Kinesis event sources."
  }

Command:

terraform-docs markdown table .
Error: Missing argument separator: A comma is required to separate each function argument from the next. (and 11 other messages)

from terraform-docs.

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.