Commit 1cc9087
committed
fix: accept digit-leading loop names in is_sam_generated_mapping
A ForEach loop named Fn::ForEach::1stBatch produces a mapping name
like SAMCodeUri1stBatch. The character after the prefix (SAMCodeUri)
is '1', which failed the uppercase-only check. This caused
_update_sam_mappings_relative_paths to skip the mapping (broken
artifact paths in build output) and _create_deploy_error to miss it
(raw CFN error instead of helpful re-package guidance).
Now accepts digits as well as uppercase letters after the prefix.
All SAM-generated prefixes end in a letter (CodeUri, ImageUri, etc.)
so a digit unambiguously indicates the start of the nesting path.1 parent 77d83d1 commit 1cc9087
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| |||
0 commit comments