You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can find more information and examples about filtering Lambda function logs in the [SAM CLI Documentation](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-logging.html).
152
152
153
+
## Switch to Lambda Layer
154
+
155
+
This example bundle all your dependencies in a single JS file thanks to esbuild but you can switch the AWSLambdaPowertoolsTypeScript Layer by:
156
+
1. specifying the right ARN in `Layers` list under the function's `Properties`
157
+
1. instructing esbuild to not bundle `@aws-lambda-powertools` under the function `Metadata/BuildProperties`
158
+
159
+
Here is the diff of the current sam template leveraging `AWSLambdaPowertoolsTypeScript` layer:
0 commit comments