We were really liking SST's live Lambda developmen...
# sst
m
We were really liking SST's live Lambda development but lost it once our application got an RDS database. I've taken a couple of stabs at using AWS Client VPN Endpoint to connect to the VPC in which our RDS database lives, but it has punched me in the face each time. I'm close and not giving up, but I'm really hoping that someone has written up their experience setting up something similar.
s
I've been going through the same pain. It's mostly self-inflicted, since I am not used to building private APIs within a VPC. I can say that I got it all working, live lambda environment and all. I use a company supported VPN on my laptop (SonicWall), so I didn't have anything to do with that setup. Is there any particular problem you're facing?
the greatest pain point for me was making sure the lambdas backing my API were within the VPC
t
This might not be an option for you depending on if its an old RDS system or not, but I now just use RDS serverless + data api
doesn't require my lambdas to be in a VPC
which means I'm not paying for managed NAT
s
I'd certainly prefer that, but I've inherited an existing Serverless Framework app and I'm trying to work within the existing architecture. It's painful.
when you say RDS Serverless, are you referring to Aurora?
I had a look at Aurora, but was dissuaded by the language around v1 only being good for test/dev workloads and v2 not being GA.
m
Back from deeply concentrating on the AWS VPC documentation and I see some replies. Nice! Good. I'm not alone. I got a Client VPN Endpoint up and running and connected (I think) to the target VPC, but all traffic from my workstation went through the VPN, so no Internet or access to the local network. Figured out I needed split-tunneling and go that working. So now I can connect a Client VPN Endpoint to the VPC with split-tunneling, meaning my local workstation functions normally, but I can't reach anything on the VPC. I'm starting by trying to get DNS working, but I'm not sure what address the DNS server is at on the AWS side.
I haven't had a successful ping to anything on the AWS side yet.
j
we’re using a bastion host instead of VPN to reach private resources