Dan Suceava
05/26/2022, 10:46 PMDan Suceava
05/26/2022, 10:49 PMthdxr
05/26/2022, 11:05 PMDerek Kershner
05/27/2022, 1:10 AMDan Suceava
05/27/2022, 1:27 AMnpm run deploy
... the build times on CodeBuild are 20-30 mins, so that includes a couple of mins for provisioning and package installation
@Derek Kershner yes, that's what I have ... all my services are in one repo, but the SST stacks are all deployed together ... at least that was my understanding of the recommendation of setting up the repo ... how are you splitting up your services? do you have separate /stacks folder for each service? So you deploy each service independently?Derek Kershner
05/27/2022, 1:33 AMDerek Kershner
05/27/2022, 1:34 AMFrank
npm run deploy
is taking the most time. Here’s a high level breakdown of the steps:
1. npm install
2. the build step in npm run deploy
3. the uploading assets step in npm run deploy
4. the generate CFN stack changesets step in npm run deploy
5. the updating CFN stacks step in npm run deploy
Frank
Frank
Dan Suceava
05/27/2022, 1:17 PM/src
/service1
/service2
/service3
/stacks
and where I should be going is
/src
/service1
/stacks
/service2
/stacks
/service3
/stacks
does that sound like a better solution?Derek Kershner
05/27/2022, 1:46 PM/src
as well).
Not only does this help with time, organization, and potentially provisioning capacity, but it can also help when you get the circular dependency issues in stacks, as you can have an order to the app deployments, whereas a single app `synth`s all at once. This is mostly applicable to things named lookup
.thdxr
05/27/2022, 1:51 PMthdxr
05/27/2022, 1:51 PMthdxr
05/27/2022, 1:52 PMsst build
takesthdxr
05/27/2022, 1:53 PMSERVICE=foo sst deploy
Then only initialize the foo related stacks.Derek Kershner
05/27/2022, 1:54 PMDerek Kershner
05/27/2022, 1:55 PMThen only initialize the foo related stacks.
sst deploy
not take a bunch of stacknames as args like cdk deploy
?thdxr
05/27/2022, 2:09 PMthdxr
05/27/2022, 2:10 PMDan Suceava
05/27/2022, 3:08 PMsst build
, it took just over 4 minutesthdxr
05/27/2022, 3:09 PMthdxr
05/27/2022, 3:09 PMDan Suceava
05/27/2022, 3:11 PM