Skip to content

[statsig_dynamic_config] default_value type is incorrect #10

@bsara

Description

@bsara

I'm trying to set the value of default_value to something like this:

default_value = {
  blah = {
    blee = "42"
    blorp = true
  }
  myArray = [ "first", "second" ]
}

However, I get the following error when running terraform plan:

| Error: Incorrect attribute value type
│
│   on dyconf_app-config.tf line 7, in resource "statsig_dynamic_config" "app_config":
│    7:   default_value = {
│    8:     blah = {
│    9:       blee  = "42"
│   10:       blorp = true
│   11:     }
│   12:     myArray = ["first", "second"]
│   13:   }
│
│ Inappropriate value for attribute "default_value": element "blah": string required.

This seems to be because default_value is typed as map(string). However, the API docs list it as just being a JSON object with any properties in it.

I tried just using default_value_json5 instead (without default_value) but I get a 400 response every time I try to do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions