Skip to content

Error for Day-2/09-builtin-functions.md in map(key, value) #80

@RohanRusta21

Description

@RohanRusta21

Error for Day-2/09-builtin-functions.md in map(key, value)

Error: Error in function call

│ on main.tf line 26, in output "my_map":
│ 26: value = map(var.keys, var.values) # Returns {"name" = "Alice", "age" = 30}
│ ├────────────────
│ │ while calling map(vals...)
│ │ var.keys is a list of dynamic
│ │ var.values is a list of dynamic

│ Call to function "map" failed: the "map" function was deprecated in Terraform v0.12 and is no longer available; use tomap({ ... }) syntax to write a literal map.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions