I am trying to add SST to existing Serverless mono...
# help
p
I am trying to add SST to existing Serverless monorepo. I need to run deployment using
seed.run
. I am encountered with this problem. 1. Serverless has a
api gateway
defined 2. Newly created SST has
congnito
and
react
app defined (previously manually deployed) The
react
app and
gateway
needs to know about
congnito
id after congnito gets deployed. The
react
app needs to know
gateway
url after gateway gets deployed. In other words, I want only
congnito
to be created first from SST then
gateway
from serverless then
react
app from sst. Is there a way to ensure this order in
seed.run
?
o
I have two SST stacks for a similar reason - I use the pipeline in seed to run the first SST app, then a bunch of serverless services that depend on SST created resources, then the other SST app which has services that depend on the the previous two steps
p
@Omi Chowdhury Hope 2 different stack means, in a single sst project (sst.json) instantiate two stack, like following?
Copy code
new Stack1(app, "stack1");
new Stack2(app, "stack2");
Not creating 2 different project, right?
o
Two different projects, each with their own sst.json and folder structure