Truong Le Vu Nhat
03/23/2022, 2:58 PMthdxr
03/23/2022, 2:59 PMthdxr
03/23/2022, 2:59 PMsst start
your code is executing locally so it will need a path to any databases behind a VPC so you'll need a VPNthdxr
03/23/2022, 3:00 PMthdxr
03/23/2022, 3:00 PMTruong Le Vu Nhat
03/23/2022, 3:14 PMIf you are using a VPC in production you can specify that the lambda uses a vpc@thdxr you mean i have to configure manually?
thdxr
03/23/2022, 3:14 PMthdxr
03/23/2022, 3:15 PMnew sst.Function(props.stack, "fn", {
vpc: ec2.Vpc.fromLookup(this, "VPC", {
vpcId: "vpc-xxxxxxxxxx",
})
})
Truong Le Vu Nhat
03/23/2022, 3:23 PMdefaultFunctionProps
?thdxr
03/23/2022, 3:23 PMTruong Le Vu Nhat
03/23/2022, 3:24 PMTruong Le Vu Nhat
03/23/2022, 3:25 PMec2
-> ecClient from aws-sdk?Truong Le Vu Nhat
03/23/2022, 3:27 PM