Skip to content

Bad variables type #33

Closed
Closed
@xelite

Description

@xelite

I've got some error when using attributes extraHosts and placement_constraints, eg.:

  extraHosts = [
    { hostname: "some.host", ipAddress: "192.168.1.1" }
  ]

causes:

The given value is not suitable for child module variable "extraHosts" defined
at .terraform/modules/yarek-dev.ecs-task-definition/variables.tf:66,1-22:
element 0: string required.

After change type of variable in module source from list(string) to list(any) everything is ok. Did you tested all posible attributes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions