Ricardo Arancibia
07/21/2021, 6:45 PMFrank
sst deploy
or sst start
?Ricardo Arancibia
07/21/2021, 6:49 PMRicardo Arancibia
07/21/2021, 6:51 PMconst api = new sst.Api(this, "Api", {
defaultFunctionProps: {
srcPath: "src",
},
routes: {
"GET /": "lambda.scheduling",
}
Ricardo Arancibia
07/21/2021, 6:51 PMconst multicenter = new sst.Function(this, "scheduling", {
srcPath: "src",
handler: "lambda.scheduling",
permissions: permissions,
environment: environmentLambda,
runtime: "python3.7"
})
Frank
lambda.handler
also in Python? Where are you specifying the runtime for that?
• was your flow: run sst deploy
> invoke scheduling
from AWS console > got the error?Ricardo Arancibia
07/21/2021, 6:59 PMRicardo Arancibia
07/21/2021, 7:01 PMlambda.scheduling
is in python
• and yes, that was my workflow. Before the sst deploy
I made a sst build
Frank
sst deploy
> invoke scheduling
from AWS console > got the error; or
2. run sst start
> invoke scheduling
from AWS console > got the errorRicardo Arancibia
07/21/2021, 7:14 PMFrank
Frank
Frank
/
sst.json
src/
dir_a/
file_a.py
dir_b/
file_b.py
lambda.py
dir_a
is like your service
dir_b
is like your scheduling_temis
Frank
lambda.py
imports something from dir_a/file_a.py
, and file_a.py
imports something from dir_b/file_b.py
Frank
Ricardo Arancibia
07/22/2021, 6:10 PMRicardo Arancibia
07/22/2021, 6:10 PMRicardo Arancibia
07/22/2021, 6:12 PMFrank
Ricardo Arancibia
07/22/2021, 6:35 PMFrank
Frank
Ricardo Arancibia
07/22/2021, 6:42 PM