![Spend Less Time Waiting on Deployments With CDK Hot Swaps](https://2busy4it.com/wp-content/uploads/2022/03/15688440-screenshot-2022-03-01-at-162801.png)
Here at Instil, we have been working on a fully serverless car insurance platform that utilizes the AWS CDK for deployments. One of the lessons we learnt early on in this project is that there is no substitution for deploying and testing our code in AWS; each of our developers has their own AWS accounts that they regularly deploy code to. However, with CDK, sometimes these deployments can take a while...
As an example, we have some versioned Lambda functions that run pre-traffic test functions with CodeDeploy to verify that our deployed code is configured and behaving correctly. Typically these can take 3-4 mins to deploy, run tests, and switch traffic when using the cdk deploy [stackname]
command.