hey, quick Q: Lambdas that use EFS storage don’t w...
# help
s
hey, quick Q: Lambdas that use EFS storage don’t work in
sst start
mode, correct? I think I remember reading that in a previous conversation. that hasn’t changed at all, I assume?
t
Yeah you won't be able to read from EFS locally
s
hmm. I wouldn’t wanna just deploy something like that into production without testing it. I suppose I’ll need to invest some time into rebuilding our staging setup which kinda fell by the wayside
t
You can mark the functio not to run locally
s
yeah, I can put a conditional in there for sure
instead of rebuilding my staging setup, I could also just deploy my dev stage (which is only used for
sst start
). it takes a long time for it to rewire all those functions, but it’s a guaranteed safe way to test funcs that depend on EFS
t
I meant you can have enableLiveDebug: false
on the function
s
OH. you mean I can tell it to run a single function fully in AWS and not locally?
t
s
no way!
that’s awesome. are there any differences I should know about? if I edit the code & save it, will it build it & upload it to AWS?
t
it's actually not that smooth, you probably will need to restart sst start and it'll go through a whole CFN deploy again to update it
s
gotcha. that’s not bad though
t
we're working on some underlying framework changes that'll let us hot patch stuff we know can skip a CFN deploy
s
I can use this to test XRay instrumentation too, since that doesn’t seem to work locally
thanks for the tip, this is a huge time-saver! 🙌