Skip to content

Instantly share code, notes, and snippets.

@brunopk
brunopk / README.md
Last active December 25, 2023 21:37
Debugging Typescript AWS Lambda with VSCode and Serverless

Debug TypeScript serverless application in VSCode

  1. Edit serverless.yml, the handler path should be from the root folder (not dist/**/your_handler.main or from any directory with compiled files), for instance:
    ...
    my_function:
     handler: handlers/my_function.main
    ...
  2. Edit serverless.yml adding serverless-plugin-typescript to the plugin section:
@fireflycons
fireflycons / Get-S3ETagForLocalFile.ps1
Created February 9, 2018 09:37
Compute Amazon S3 ETag for a local file
<#
.SYNOPSIS
Compute Amazon S3 ETag for a local file
.DESCRIPTION
ETags represent a hash of the content of a file stored in S3.
Comaparing ETags can be used to determine
- If a file in S3 is the same as one you are going to upload
- Following an upload, whether the file was successfully uploaded.