@amazon-codecatalyst/blueprints.sam-serverless-application
Version:
This blueprint creates a project that leverages a serverless application model (SAM) to quickly create and deploy an API. You can choose Java, TypeScript, or Python as the programming language
35 lines (34 loc) • 1.13 kB
JSON
{
"version": "1.0.0",
"configurations": [
{
"name": "Launch local sam API",
"request": "launch",
"type": "chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/{{lambdaFunctionName}}/hello-world",
"preLaunchTask": "sam: start api"
},
{
"name": "Debug current test file",
"type": "node",
"request": "launch",
"runtimeArgs": [
"${workspaceRoot}/{{lambdaFunctionName}}/hello-world/node_modules/.bin/mocha",
"--inspect-brk",
"${relativeFile}",
],
"console": "integratedTerminal",
},
{
"name": "Debug all test files",
"type": "node",
"request": "launch",
"runtimeArgs": [
"${workspaceRoot}/{{lambdaFunctionName}}/hello-world/node_modules/.bin/mocha",
"${workspaceRoot}/{{lambdaFunctionName}}/hello-world/tests/**/*"
],
"console": "integratedTerminal",
},
]
}