Commit 0fc33d9
authored
fix(custom-resources): incorrect sdkv3 fallback (#26693)
Fixes logic within the aws-sdk-v3-handler for AwsCustomResource to
behave more like the v2 handler, in so much as if `installLatestSdk`
fails, but it can still require the package it was attempting to
install, it will continue.
This makes the runtime more friendly to deploying your constructs across
regions that may or may not have access to npm within the lambda
runtime.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent 42250f1 commit 0fc33d9
File tree
168 files changed
+42122
-45315
lines changed- packages
- @aws-cdk-testing/framework-integ/test
- aws-apigateway/test/integ.cors.js.snapshot
- aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot
- asset.854c68e9b071accbb9b7c92951a2a38b51aa01c67b21ba5813d089a8b3473228.bundle
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- aws-elasticloadbalancingv2/test/integ.alb.oidc.js.snapshot
- asset.854c68e9b071accbb9b7c92951a2a38b51aa01c67b21ba5813d089a8b3473228.bundle
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- aws-elasticsearch/test
- integ.elasticsearch.custom-kms-key.js.snapshot
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- integ.elasticsearch.unsignedbasicauth.js.snapshot
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- aws-events-targets/test/logs/integ.log-group.js.snapshot
- asset.854c68e9b071accbb9b7c92951a2a38b51aa01c67b21ba5813d089a8b3473228.bundle
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- aws-globalaccelerator-endpoints/test/integ.globalaccelerator.js.snapshot
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- aws-logs-destinations/test/integ.lambda.js.snapshot
- asset.854c68e9b071accbb9b7c92951a2a38b51aa01c67b21ba5813d089a8b3473228.bundle
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- aws-opensearchservice/test
- integ.opensearch.custom-kms-key.js.snapshot
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- integ.opensearch.js.snapshot
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- integ.opensearch.unsignedbasicauth.js.snapshot
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- aws-route53/test/integ.vpc-endpoint-service-domain-name.js.snapshot
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- aws-s3/test/integ.bucket-auto-delete-objects.js.snapshot
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- custom-resources/test/aws-custom-resource
- integ.aws-custom-resource-athena.js.snapshot
- .cache
- asset.7a1aa4038bfd6218fb1a3abf28d3007c71ea0e2b12db642b5a12434a928c14da
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- integ.aws-custom-resource-vpc.js.snapshot
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- integ.aws-custom-resource.js.snapshot
- asset.cb3fb24b24fb811fe6094748adf3e7571ee53cfadc9bf6753cbb223d266daf83
- asset.f5703cf7b56c39c576b7f8c03378239080baf3b390d0afe381f81bde5688e6eb
- triggers/test/integ.triggers.js.snapshot
- asset.854c68e9b071accbb9b7c92951a2a38b51aa01c67b21ba5813d089a8b3473228.bundle
- asset.e4815916885b43e053d8fcef603638aa3a4754c27a3cb0d21fd1c50c2923415b.bundle
- aws-cdk-lib/custom-resources
- lib/aws-custom-resource/runtime
- test/aws-custom-resource/runtime
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
168 files changed
+42122
-45315
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Lines changed: 35 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | | - | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 77 | | |
81 | 78 | | |
82 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 185 | | |
| 186 | + | |
193 | 187 | | |
194 | 188 | | |
195 | 189 | | |
| |||
216 | 210 | | |
217 | 211 | | |
218 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | 303 | | |
| 304 | + | |
311 | 305 | | |
312 | 306 | | |
313 | 307 | | |
| |||
334 | 328 | | |
335 | 329 | | |
336 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | 421 | | |
| 422 | + | |
429 | 423 | | |
430 | 424 | | |
431 | 425 | | |
| |||
452 | 446 | | |
453 | 447 | | |
454 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | 461 | | |
469 | 462 | | |
| 463 | + | |
470 | 464 | | |
471 | 465 | | |
472 | 466 | | |
| |||
497 | 491 | | |
498 | 492 | | |
499 | 493 | | |
500 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
549 | | - | |
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
0 commit comments