Commit daf5a19
committed
fix: merge pseudo-parameters in sam_template_validator before expansion
expand_language_extensions was called with only self.parameter_overrides,
missing pseudo-parameters (AWS::Region, AWS::AccountId, etc.). Every
other caller merges IntrinsicsSymbolTable.DEFAULT_PSEUDO_PARAM_VALUES
first. Without pseudo-params, templates using Ref: AWS::Region in
Fn::ForEach collections or Fn::Sub expressions would fail during
sam validate but work correctly with sam build and sam package.1 parent 892663a commit daf5a19
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
0 commit comments