Skip to content

Commit

Permalink
chore: Replace aws-lambda with @types/aws-lambda (#1631)
Browse files Browse the repository at this point in the history
`aws-lambda` is a [poorly-named
package](https://www.npmjs.com/package/aws-lambda) which is a CLI tool
to deploy Lambda functions and includes heavy dependencies (the entire
v2 `aws-sdk`).

It also incidentally includes types for Lambda events.

The correct package for Lambda event types is `@types/aws-lambda` as per
the
[docs](https://docs.aws.amazon.com/lambda/latest/dg/typescript-handler.html).

This PR adds the correct devDependency and removes the dependency on
`aws-lambda`

Co-authored-by: Richard Shade <[email protected]>
  • Loading branch information
astuyve and rshade authored Jan 10, 2025
1 parent ae58676 commit 17566cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aws-ts-lambda-efs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"@pulumi/awsx": "2.19.0",
"@pulumi/pulumi": "3.145.0",
"@pulumiverse/time": "^0.0.17",
"aws-lambda": "^1.0.7"

},
"devDependencies": {
"@types/aws-lambda": "^8.10.137"
}
}

0 comments on commit 17566cc

Please sign in to comment.