Hosy Mia
07/10/2021, 3:04 PMnpx create-serverless-stack@latest my-sst-app --language python
• npm run test
I get the following error:
Cannot find a handler file at src/lambda.js".
Is it possible to change the default extension sst looks for to .py? instead of .js?Jay
Jay
Jay
Hosy Mia
07/11/2021, 1:19 AMruntime: "python3.7"
configuration when the API is defined. However, it does seem a bit weird because the default function props are already set in index.ts app.setDefaultFunctionProps({
runtime: "python3.7"
});
Jay
Frank
Frank
test/MyStack.test.js
, replace
const app = new <http://sst.App|sst.App>();
with
const app = new <http://sst.App|sst.App>();
app.setDefaultFunctionProps({
runtime: "python3.7"
});
Frank
<http://sst.App|sst.App>
object in this case.Frank
Frank
create-serverless-stack
Python template to set the default function props in the test, similar to the code snippet above.Frank