Louis Barclay
07/20/2021, 8:33 PMLouis Barclay
07/20/2021, 8:34 PMLouis Barclay
07/20/2021, 8:39 PMLouis Barclay
07/20/2021, 8:45 PMFrank
sst start
doesn’t support live debugging Lambda@Edge function, but other than that, what you described is doable.Louis Barclay
07/20/2021, 8:48 PMLouis Barclay
07/20/2021, 8:48 PMLouis Barclay
07/20/2021, 8:50 PMLouis Barclay
07/20/2021, 8:55 PMFrank
fromAsset
Frank
Louis Barclay
07/20/2021, 8:58 PMLouis Barclay
07/20/2021, 8:59 PMnew sst.Api
way. That is very handy because of how elegantly it packages up dependencies. It's just not suitable for Lambda@Edge because 1) by default it includes an environment variable 'AWS_NODEJS_CONNECTION_REUSE_ENABLED', which means it can't be used with Lambda@Edge (could be some way to prevent that though) 2) it creates the API which I don't need for those functionsLouis Barclay
07/20/2021, 8:59 PMFrank
sst.Api
are not Edge functions. What you did is actually the only way to create a Edge Lambda.Frank
Frank