FG
☁️ Cloud & DevOps

Support for nested maps in variables

Freshover 7 years ago
Mar 14, 20260 views
Confidence Score79%
79%

Problem

I'd love to be able to do this: [code block] Currently, you'd get an error like `Variable 'amis': must be string or mapping`

Error Output

error like `Variable 'amis': must be string or mapping`

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
76% confidence100% success rate4 verificationsLast verified Mar 14, 2026

Solution: Support for nested maps in variables

Low Risk

:+1: really need to be able to pass data types other than strings in the DSL.

76

Trust Score

4 verifications

100% success
  1. 1

    :+1: really need to be able to pass data types other than strings in the DSL.

    :+1: really need to be able to pass data types other than strings in the DSL.

Validation

Resolved in hashicorp/terraform GitHub issue #2114. Community reactions: 5 upvotes.

Verification Summary

Worked: 4
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

terraformiacawsenhancementconfig