Skip to content
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

Action Bug: Dataset string props not supported #186

Open
sfitzgerald125 opened this issue Sep 23, 2024 · 0 comments
Open

Action Bug: Dataset string props not supported #186

sfitzgerald125 opened this issue Sep 23, 2024 · 0 comments

Comments

@sfitzgerald125
Copy link

Overview

Per the docs, the dataset rules "can be a constant (string, number, etc) or a "jqQuery" object." However, only jqQuery is supported.

Reproduce

Copy the terraform code block docs, copied below for convenience:

resource "port_action" "myAction" {
  # ...action properties
  user_properties = {
    string_props = {
      "namespace" = {
        format      = "entity"
        blueprint   = "namespace"
        dataset = {
          combinator = "and"
          rules = [
            {
              property = "$team"
              operator = "containsAny"
              value = "value here. this can also be a 'jqQuery' object"
            }
          ]
        }
      }
    }
  }
}

Run terraform plan and you get the following error:
Inappropriate value for attribute "self_service_trigger": attribute "user_properties": attribute "string_props": element "namespace": attribute "dataset": attribute "rules": element 0: attribute "value": object required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant