feat(nextjs-cdk-construct): add optional prop to extend lambda perms
Add an optional prop to NextJsLambdaEdge Construct to attach a list of
IAM Managed Policies to the default lambda policy list. This allows
extending the privileges of the default, API and ISR Next lambdas so
they can interact with or fetch data from other AWS services, such as
DynamoDB.
Handler Size Report
No changes to handler sizes.
Base Handler Sizes (kB) (commit e6367b585fb98608cd2e9327e2c8d4058ba73b00)
{
"Lambda": {
"Default Lambda": {
"Standard": 1578,
"Minified": 692
},
"Image Lambda": {
"Standard": 1543,
"Minified": 831
}
},
"Lambda@Edge": {
"Default Lambda": {
"Standard": 1588,
"Minified": 698
},
"Default Lambda V2": {
"Standard": 1580,
"Minified": 694
},
"API Lambda": {
"Standard": 634,
"Minified": 318
},
"Image Lambda": {
"Standard": 1551,
"Minified": 835
},
"Regeneration Lambda": {
"Standard": 1233,
"Minified": 566
},
"Regeneration Lambda V2": {
"Standard": 1307,
"Minified": 596
}
}
}
New Handler Sizes (kB) (commit 2f40b4dda3e09064ad7ce6d6075e2293c273c4c1)
{
"Lambda": {
"Default Lambda": {
"Standard": 1578,
"Minified": 692
},
"Image Lambda": {
"Standard": 1543,
"Minified": 831
}
},
"Lambda@Edge": {
"Default Lambda": {
"Standard": 1588,
"Minified": 698
},
"Default Lambda V2": {
"Standard": 1580,
"Minified": 694
},
"API Lambda": {
"Standard": 634,
"Minified": 318
},
"Image Lambda": {
"Standard": 1551,
"Minified": 835
},
"Regeneration Lambda": {
"Standard": 1233,
"Minified": 566
},
"Regeneration Lambda V2": {
"Standard": 1307,
"Minified": 596
}
}
}
Codecov Report
Merging #2444 (2f40b4d) into master (e6367b5) will increase coverage by
0.05%. The diff coverage is100.00%.
@@ Coverage Diff @@
## master #2444 +/- ##
==========================================
+ Coverage 83.85% 83.91% +0.05%
==========================================
Files 102 102
Lines 3717 3724 +7
Branches 1191 1197 +6
==========================================
+ Hits 3117 3125 +8
+ Misses 588 587 -1
Partials 12 12
| Impacted Files | Coverage Δ | |
|---|---|---|
| ...rless-components/nextjs-cdk-construct/src/index.ts | 94.30% <100.00%> (+0.34%) |
:arrow_up: |
| packages/libs/core/src/images/imageOptimizer.ts | 84.51% <0.00%> (+0.41%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update e6367b5...2f40b4d. Read the comment docs.