Skip to content

Commit e01f53d

Browse files
author
Florian Chazal
committed
fix typo and unpin cdk version
1 parent 3333207 commit e01f53d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Diff for: docs/index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
206206

207207
If you use `esbuild` to bundle your code, make sure to exclude `@aws-lambda-powertools` from being bundled since the packages will be brought by the Layer:
208208

209-
=== "SAM"
209+
=== "SAM" (check the [doc](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-build-typescript.html) for more details)
210210

211211
```yaml hl_lines="5"
212212
MyLambdaFunction:
@@ -218,14 +218,14 @@ If you use `esbuild` to bundle your code, make sure to exclude `@aws-lambda-powe
218218
BuildMethod: esbuild
219219
BuildProperties:
220220
Minify: true
221-
External:s
221+
External:
222222
- '@aws-lambda-powertools/commons'
223223
- '@aws-lambda-powertools/logger'
224224
- '@aws-lambda-powertools/metrics'
225225
- '@aws-lambda-powertools/tracer'
226226
```
227227

228-
=== "Serverless framework"
228+
=== "Serverless framework (check the [doc](https://floydspace.github.io/serverless-esbuild/) for more details)"
229229

230230
```yaml hl_lines="5"
231231
custom:
@@ -237,7 +237,7 @@ If you use `esbuild` to bundle your code, make sure to exclude `@aws-lambda-powe
237237
- '@aws-lambda-powertools/tracer'
238238
```
239239

240-
=== "CDK"
240+
=== "CDK (check the [doc](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_nodejs.BundlingOptions.html#externalmodules) for more details)"
241241

242242
```typescript hl_lines="11 16"
243243
new awsLambdaNodejs.NodejsFunction(this, 'Function', {

Diff for: examples/cdk/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: examples/cdk/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"devDependencies": {
2727
"@types/jest": "^27.4.0",
2828
"@types/node": "18.0.0",
29-
"aws-cdk": "2.27.0",
29+
"aws-cdk": "^2.0.0",
3030
"esbuild": "^0.14.23",
3131
"jest": "^27.5.1",
3232
"ts-jest": "^27.1.4",
@@ -40,7 +40,7 @@
4040
"@aws-sdk/client-sts": "^3.53.0",
4141
"@middy/core": "^2.5.6",
4242
"@types/aws-lambda": "^8.10.86",
43-
"aws-cdk-lib": "2.27.0",
43+
"aws-cdk-lib": "^2.0.0",
4444
"aws-sdk": "^2.1088.0",
4545
"constructs": "^10.0.82",
4646
"source-map-support": "^0.5.16"

0 commit comments

Comments
 (0)