Hi everyone! I just heard about SST today and start following your amazing guides! One quick question on the live lambda development - if my lambda function needs to make a dynamoDB request, then we would have to set up a VPC first, is my understanding correct?
g
Garret Harp
10/11/2021, 2:08 AM
No you can call dynamo without vpc. In general you should try and not use vpc for lambda if you can.
a
arda
10/11/2021, 2:15 AM
interesting.. how does that work behind the scene? Does the local lambda call the dynamo through the websocket and the debug stack?
t
thdxr
10/11/2021, 2:44 AM
DynamoDB does not (and cannot iirc) need to be in a VPC as it's a fully managed service
thdxr
10/11/2021, 2:44 AM
We forward the functions' AWS credentials to your local execution environment where your code is run
thdxr
10/11/2021, 2:45 AM
So it essentially assumes the role of function in AWS