Commit 1bbfa42
committed
fix(dynamodb): treat a block-level unresolved intrinsic as declared, and skip a non-string IndexName explicitly
Third review pass on PR #1443. It was right that deferring the block-level
case to #1444 did not hold up: it needed nothing from the other deferred
item, and routes straight into the warning this PR already emits.
Presence was tested on the MEMBER key, so a block that is ITSELF an
unresolved intrinsic - WriteOnDemandThroughputSettings: {"Fn::If": [...]} -
is a record with no MaxWriteRequestUnits, reported "not declared", and fired
the destructive -1 on a ceiling the template was trying to set. That is the
same bug one level up from where the guard looked.
isUnresolvedIntrinsicBlock (every key Ref or Fn::*) routes it into the same
suppression, while a genuine empty block still counts as a removal.
Also makes the non-string IndexName skip explicit in the modified loop. Such
an entry was safe only because previousSdkByName.get(<object>) missed on
identity - an accident, not either mechanism the doc comment names.
Refs #14401 parent 145df3f commit 1bbfa42
3 files changed
Lines changed: 76 additions & 7 deletions
File tree
- docs
- src/provisioning/providers
- tests/unit/provisioning
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 39 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1338 | 1338 | | |
1339 | 1339 | | |
1340 | 1340 | | |
1341 | | - | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
1342 | 1347 | | |
1343 | 1348 | | |
1344 | 1349 | | |
| |||
3130 | 3135 | | |
3131 | 3136 | | |
3132 | 3137 | | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
3133 | 3156 | | |
3134 | 3157 | | |
3135 | 3158 | | |
| |||
3210 | 3233 | | |
3211 | 3234 | | |
3212 | 3235 | | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
3213 | 3244 | | |
3214 | 3245 | | |
3215 | 3246 | | |
3216 | 3247 | | |
3217 | 3248 | | |
3218 | 3249 | | |
3219 | | - | |
3220 | | - | |
3221 | | - | |
3222 | | - | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
3223 | 3255 | | |
3224 | | - | |
| 3256 | + | |
| 3257 | + | |
3225 | 3258 | | |
3226 | 3259 | | |
3227 | 3260 | | |
| |||
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1368 | 1368 | | |
1369 | 1369 | | |
1370 | 1370 | | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
1371 | 1407 | | |
1372 | 1408 | | |
1373 | 1409 | | |
| |||
0 commit comments