Commit 1062ca3
committed
fix(apigateway): consolidate lambda permissions when reused for multiple operations
The maximum Lambda permission policy size could be exceeded for APIs which reused
the same Lambda function for multiple operations, as the integration added a new
permission for each operation, scoped down to the specific operation.
This change updates both the REST and HTTP API lambda integrations to consolidate
permissions when more than 10 permissions would be added for the same handler, creating a
permission scoped to the entire API rather than the operation. The behaviour
remains the same where individual lambdas are used for operations.
Fixes #9327
Fixes #195351 parent effa46d commit 1062ca3
File tree
189 files changed
+107350
-33927
lines changed- packages
- @aws-cdk-testing/framework-integ/test
- aws-apigatewayv2-authorizers/test/http
- integ.lambda.js.snapshot
- integ.user-pool.js.snapshot
- aws-apigatewayv2-integrations/test/http
- integ.http-proxy.js.snapshot
- integ.lambda-permission-consolidation.js.snapshot
- asset.c11608a15785084ea1afe65826e575ee316add10c8b1bb373e93297e26aec564.bundle
- integ.lambda-proxy.js.snapshot
- aws-apigateway/test
- authorizers/integ.api-with-authorizer-and-proxy.js.snapshot
- integ.cors-allow-multiple-origins.js.snapshot
- integ.cors.js.snapshot
- integ.lambda-api-nonproxy.js.snapshot
- integ.lambda-api.js.snapshot
- asset.5bc7ca7323e085fed7f85a690594a53ffcd62be4651195afe166f4a2bafad9fa.bundle
- asset.c11608a15785084ea1afe65826e575ee316add10c8b1bb373e93297e26aec564.bundle
- integ.lambda-api.latebound-deploymentstage.js.snapshot
- integ.lambda-permission-consolidation.js.snapshot
- asset.c11608a15785084ea1afe65826e575ee316add10c8b1bb373e93297e26aec564.bundle
- integ.restapi-default-apikey.js.snapshot
- integ.restapi.books.js.snapshot
- integ.restapi.js.snapshot
- integ.restapi.multistack.js.snapshot
- integ.restapi.multiuse.js.snapshot
- integ.spec-restapi.js.snapshot
- aws-stepfunctions-tasks/test/apigateway
- integ.call-rest-api-cross-region.js.snapshot
- integ.call-rest-api.js.snapshot
- core/test/integ.prop-injectors.js.snapshot
- @aws-cdk
- aws-pipes-enrichments-alpha/test
- integ.api-destination.js.snapshot
- asset.c11608a15785084ea1afe65826e575ee316add10c8b1bb373e93297e26aec564.bundle
- integ.api-gateway.js.snapshot
- asset.c11608a15785084ea1afe65826e575ee316add10c8b1bb373e93297e26aec564.bundle
- aws-pipes-targets-alpha/test
- integ.api-destination.js.snapshot
- asset.c11608a15785084ea1afe65826e575ee316add10c8b1bb373e93297e26aec564.bundle
- integ.api-gateway.js.snapshot
- asset.c11608a15785084ea1afe65826e575ee316add10c8b1bb373e93297e26aec564.bundle
- integ-tests-alpha/test/assertions/providers/integ.http-api-call-assertions.js.snapshot
- aws-cdk-lib
- aws-apigatewayv2-integrations
- lib/http
- test/http
- aws-apigateway
- lib/integrations
- test/integrations
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
189 files changed
+107350
-33927
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| |||
Lines changed: 503 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
0 commit comments