Skip to content

Instantly share code, notes, and snippets.

@Luke-Rogerson
Last active July 26, 2021 20:47
Show Gist options
  • Save Luke-Rogerson/c6b12de65cec7af346d1c68444671cd6 to your computer and use it in GitHub Desktop.
Save Luke-Rogerson/c6b12de65cec7af346d1c68444671cd6 to your computer and use it in GitHub Desktop.
An example setup for debugging Serverless Framework Lambda functions in VSCode
{
"configurations": [
{
"preLaunchTask": "add_requirements",
"type": "aws-sam",
"request": "direct-invoke",
"name": "whatever",
"invokeTarget": {
"target": "code",
"lambdaHandler": "path.to.your.handler.handler_name",
"projectRoot": "."
},
"lambda": {
"runtime": "python3.8",
"payload": {},
"environmentVariables": {
"EXAMPLE_ENV_VAR": "blahblah"
}
},
"aws": {
"credentials": "profile:my_profile"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment