If my stack includes several websites and services...
# help
a
If my stack includes several websites and services and I only want to deploy the services where the code has changed, how do I do that without deploying the whole stack? (in CI/CD)
a
You can use Lerna.
If you use javascript.
a
okay I setup Lerna, however doesn't SST deploy everything when I run it?
a
No, SST uses CF, and if the infrastructure doesn’t change, is not going to deploy anything.
CF checks the stack diff before deploying.
So if CF stack doesn’t change, is not going to deploy it.
There is a
diff
command in SST/CDK if you want to try it.
a
Yes, this is what I use.
a
The diff command shows the difference between a deployed stack and the local definition of the stack.
That way you can know if there is a diff or not.
This is what SST uses to know if it has to deploy anything or not.
a
okay awesome, thanks!