Dan Van Brunt
10/24/2021, 2:19 PMsst.Function
where you reference the assets using path
like you guys do with lambda.Function
?
Just trying to envision portability of a custom construct.thdxr
10/24/2021, 4:14 PMthdxr
10/24/2021, 4:15 PMFrank
sst.Function
in the same fashion. Are you concerned that the custom resource code might not be compatible with esbuild?Dan Van Brunt
10/24/2021, 10:00 PMFrank
path
and __dirname
. Just point handler
to ie. path/to/custom/resource/lambda.handler
should work?Dan Van Brunt
10/24/2021, 10:06 PMFrank
Dan Van Brunt
10/25/2021, 6:02 PMFrank
Frank
Dan Van Brunt
11/02/2021, 12:40 PMDan Van Brunt
01/23/2022, 2:09 PMhandler
So far, all I can think of is to NOT use SST for our custom lib constructs and instead use cdk directly. Just be nice if there was a way to get this to work.Dan Van Brunt
01/23/2022, 3:16 PMDan Van Brunt
01/23/2022, 3:20 PMFrank
sst.Function
that has srcPath
and handler
pointing to an asset folder inside node_modules/@serverless-stack/resources
instead of user’s project folder where sst.json sits.Frank
Frank
Dan Van Brunt
01/24/2022, 1:56 PM