Does anyone use SST without api gateway and lambda...
# help
d
Does anyone use SST without api gateway and lambdas? This is probably the normal use case for general CDK. Setup whatever services, and then have my own local dev server (go, node, whatever) connect to those services. But this also means I have to deal with ensuring things work across a private VPC.
I do know that tools like a certain WireGuard wrapper exist to tunnel through VPCs.
a
We had a thread about this, in the doc from SST there is docs about using VPN.
I’m going to use that, mostly because my RDS it’s hosted in the VPC.
d
Thanks I’ll dig there.
f
Would it work if resources in the stage used for
sst start
are deployed into the public subnet?
d
That’s an interesting proposition. Product wise, that’s interesting but as long as the solutions are easy in user land, like a simple guide to switch all resources in the cdk code, it may not be worth building in.
f
Yeah I was thinking more of a guide, showing something like:
Copy code
const cluster = new rds.DatabaseCluster(this, 'Database', {
  ...
  instanceProps: {
    vpcSubnets: {
      subnetType: scope.stage === "prod"
        ? ec2.SubnetType.PRIVATE
        : ec2.SubnetType.PUBLIC,
    },
  },
});