Using AWS CDK with Serverless Framework

Link to chapter —

What’s the reason behind deploying lambda with

$ AWS_PROFILE=production serverless deploy --stage prod --region us-east-1


$ AWS_PROFILE=production npx sst deploy --stage prod --region us-east-1

for others?

I’m not sure what you mean. The Lambdas part is using Serverless Framework. So for API Gateway and Lambda it’s a pretty good fit. But for other AWS infrastructure CDK is much better.