Hi! Possibly a dumb question. Am looking to upgrad...
# seed
j
Hi! Possibly a dumb question. Am looking to upgrade our serverless deployment processes from hand tooled cloudformation templates and python deployment scripts to something a bit more professional and CI/CD. One question. Right now we have separate deploy scripts to a) push zipped Lambda deployables to S3 and b) deploy CF templates with a reference to a). I realise this is likely sub- optimal. But does seed automate both these steps as part of a single CI process ?
a
SST is built upon the CDK. When you run
npx sst deploy
the following happens: 1. your codebase is transpiled and linted, during transpilation esbuild is used to bundle the source for your lambdas. 2. the cdk bootstrap is run to deploy a debug stack to aid in live lambda development. 3. An s3 bucket is automatically created for you which houses your debug stack’s bundled source code. 4. Your app’s bundled source code and auto-generated cfn templates are then uploaded to s3 and ecr (not sure about it) and to other services. 5. Cfn then starts the deployment of stacks and creates all resources that you had defined.