Last active
July 26, 2021 20:47
-
-
Save Luke-Rogerson/c6b12de65cec7af346d1c68444671cd6 to your computer and use it in GitHub Desktop.
An example setup for debugging Serverless Framework Lambda functions in VSCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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