Skip to content

Invalid value for "inputMap" parameter: must have map or object type. #2

@dkirrane

Description

@dkirrane

Hi, when I do terraform plan I hit the following:

│ Error: Invalid function argument
│
│   on ..\..\depth.tf line 55, in locals:
│   55:           for key in keys(item["value"]) :
│     ├────────────────
│     │ item["value"] is tuple with 5 elements
│
│ Invalid value for "inputMap" parameter: must have map or object type.

I'm trying to merge maps containing an array of objects

e.g.

		"fubar": [
			{
				"name": "foo",
				"prefixes": ["item1", "item2"]
			},
			{
				"name": "bar",
				"prefixes": null
			}
		]

The problem looks like it's "prefixes": null.
If I change to "prefixes": [] it seems to work

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