diff --git a/src/cfnlint/template/transforms/_language_extensions.py b/src/cfnlint/template/transforms/_language_extensions.py index 3733542626..060309e643 100644 --- a/src/cfnlint/template/transforms/_language_extensions.py +++ b/src/cfnlint/template/transforms/_language_extensions.py @@ -339,7 +339,7 @@ def value( ): for k, v in cfn.template.get("Mappings", {}).items(): if isinstance(v, dict): - if t_map[1].value(cfn) in v: + if t_map[1].value(cfn, params) in v: t_map[0] = _ForEachValue.create(k) mapping = v break