kierans777
10/09/2021, 4:03 AMdev
, test
, prod
and so on. I stumbled on serverless-stack and realised where SST was better than my own (hastily) home rolled solution and I've looked into porting. I have one question regarding the management of stages/deploying.
In my current CDK project, I have multiple "apps" (that is bin/*.ts
) to represent different logical areas of infrastructure. For example a "global" app for things like Hosted Zones, an "identity" app for different identity concerns, an "api" app for deploying my public facing API into multiple regions (I'm using Regional API Gateways with Route 53 latency policies). My CI/CD pipelines can then run each app as required into the correct regions/stages and it all works.
However with SST there are no more "apps", just the stacks/index.js
. I'm wondering how to port my CDK apps to the SST setup to maintain my existing separation of stacks into their logical areas.Frank
Frank
bin/*.ts
have multiple stacks in them?kierans777
10/09/2021, 9:10 AMkierans777
10/09/2021, 9:11 AMYou can create multiple SST apps to mirror the same setup.Can I pass a different
index.js
file to the sst deploy
command?kierans777
10/09/2021, 9:42 AMproject1
-> stacks/index.js
project2
-> stacks/index.js
common
-> constants.js
Joe Kendal
10/10/2021, 1:47 AMJoe Kendal
10/10/2021, 1:48 AMkierans777
10/10/2021, 1:55 AMkierans777
10/10/2021, 1:57 AMCan I pass a differentReading the source code for the CLI, I believe the answer is no, because the way the CLI andfile to theindex.js
command?sst deploy
sst.json
work together.